MCPcopy Create free account
hub / github.com/bnjbvr/trinity / init

Method init

modules/libcommand/src/lib.rs:128–128  ·  view source on GitHub ↗

Code that will be called once during initialization of the command. This is a good time to retrieve settings from the database and cache them locally, if needs be, or run any initialization code that shouldn't run on every message later.

(_config: HashMap<String, String>)

Source from the content-addressed store, hash-verified

126 /// retrieve settings from the database and cache them locally, if needs be, or run any
127 /// initialization code that shouldn't run on every message later.
128 fn init(_config: HashMap<String, String>) {}
129
130 /// Handle a message received in a room where the bot is present.
131 ///

Callers

nothing calls this directly

Implementers 9

lib.rsmodules/linkify/src/lib.rs
lib.rsmodules/uuid/src/lib.rs
lib.rsmodules/silverbullet/src/lib.rs
lib.rsmodules/pun/src/lib.rs
lib.rsmodules/horsejs/src/lib.rs
lib.rsmodules/openai/src/lib.rs
lib.rsmodules/memos/src/lib.rs
lib.rsmodules/secret/src/lib.rs
lib.rsmodules/mastodon/src/lib.rs

Calls

no outgoing calls

Tested by

no test coverage detected