How to register behavior on bot startup #132
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
question
Further information is requested
The plugin initialization code calls the
on_init()
function, if it exists, but since no arguments are passed, there's no context to send a message or connection to access.What is the recommended way to send or queue a message to be sent to a specific channel or user?
I'd like to register behavior that is initiated by the bot instead of as a response to
@listen_to
or@respond_to
.For instance, sending a message when the bot first starts, send a notification, etc.
The text was updated successfully, but these errors were encountered: