bot_ex v0.2.0 BotEx.Behaviours.Handler behaviour

Basic behaviour for the Handler module

Link to this section Summary

Callbacks

Returns a command is responsible for module processing

Message handler

Send message to the worker

Link to this section Callbacks

Link to this callback

get_cmd_name()

get_cmd_name() :: any() | no_return()

Returns a command is responsible for module processing

Link to this callback

handle_message(arg1, any)

handle_message(BotEx.Models.Message.t(), any()) :: any() | no_return()

Message handler

Parameters

Link to this callback

send_message(msg)

send_message(msg :: BotEx.Models.Message.t()) :: BotEx.Models.Message.t()

Send message to the worker

Parameters