abstract class IRCBot::Handler

Overview

Abstract handler class, should be extended by modules. Extending this class will automatically register the module with the bot instance.

In your module, you can define multiple on_ methods to handle different commands. For example, to capture privmsg events you would put on_privmsg(message) in your module class.

Defined in:

ircbot/module.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def on_message(message) #

Catch all for any messages that aren't handled by another on_ method.


[View source]

Macro Detail

macro method_missing(call) #

[View source]