The method that gets executed when the received message is a valid command.
The received message object.
String containing everything after the command. For example, if the message is "#quote me", this parameter will be "me".
Returns the command(s) this module acts on. String(s) should not include the command prefix.
the command(s)
Returns the description of the command.
the description
Returns a runtime object corresponding to the current module.
Returns a user-friendly description of the arguments this command accepts. This is used in descriptions and error messages.
Gets called when the bot starts listening.
Gets called when the bot is shutting down.
Validates the message containing the command. If this returns true, the execute() method will be invoked. If this returns false, an error message with the correct usage of the command will be sent to the chat.
The received message object.
String containing everything after the command. For example, if the message is "#quote me", this parameter will be "me".
true if the command is valid and should be executed, false otherwise.
Generated using TypeDoc
Defines a command that users can send to the bot. Commands must begin with a prefix that can be configured globally, or on a per-chat-thread or per-user basis.
Unless configured, the default prefix is '#'. An example command would be '#help'.
2.0.0