class

Worker::MessageHandler

Inherits Reference < Object

Turn messages into command calls

Constants

COMMAND_NAME_REGEX = /[a-zа-я]+/
DM_PREFIX = {string: "", allow_whitespace: true}
DOWNCASE_COMMAND_NAME = true
Log = Worker::Log.for("message_handler")
OPTION_PREFIX = "--"
OPTION_SEPARATOR = "="

Constructors

new(worker : Worker)
Source

Instance methods

handle(text : String, context : CommandCall::Context) : Array(CommandCall)
Source

Nested types