User Tools

Site Tools


melanobot:configuration:handlers

Message Handlers

Message handlers perform an action when a message matches the conditions that trigger the handler.

Note that all handler classes start with a capital letter.

See Modules for a list of concrete handlers.

Handler

Base class for all handlers.

  • priority 0 – Priority for messages generated by the handler
  • enabled 1 – If 0 the handler will be completely ignored from the config.

SimpleAction

Inherits Handler.

Base class for all handler triggered by a fixed string at the beginning of the message.

  • trigger – String which triggers the handler. Derived classes have all their own default value (Unless otherwise specified, the default is a lowercase version of the handler type)
  • public true – Whether the reply shall be given visible by everyone (otherwise only to the user triggering the handler)
  • direct false – Whether the handler is triggered only from messages explicitly directed to the bot or can be triggered by any message. (Examples of direct messages on IRC are private messages or channel messages beginning with the IRC bot name)
melanobot/configuration/handlers.txt · Last modified: 2015/05/26 15:35 (external edit)