annotation PrivateParlorXT::Hears
Overview
Annotation for Telegram hears handlers
Keys and Values:
pattern
: a StringLiteral or RegexLiteral that triggers this HearsHandler when it is found in a message text.
A RegexLiteral will match patterns inside text, whereas a StringLiteral will match patterns at the start of text.
config
: StringLiteral, the name of the Config member that enables this handler.
Handlers should be configurable, though a value is not required here to compile or be used in the program.
command
: a BoolLiteral which determines if the HearsHandler functions as a command.
If true, a "command_disabled" reply will be sent if this handler is not toggled.