class Worker::MessageHandler

Overview

Turn messages into command calls

Defined in:

worker/message_handler.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(worker : Worker) #

[View source]

Instance Method Detail

def handle(text : String, context : CommandCall::Context) : Array(CommandCall) #

[View source]