Coders-IRC


IRC for Coders

botto

yet another IRC bot
Submitted by Chain Today IRC Bots 0 Comments


About:

Botto uses 2 types of listeners when responding to events: commands and observers. the _commandHandler and _observerHandler both act as routing layers to call their respective modules. The modules themselves contain the logic for whatever the module is responsible for. This allows us to easily add/remove/hot-swap modules without having to mess with the routing layer since the modules are pulled in dynamically on message events.

Both commands & observers inherit from their parent class. Child modules will do whatever work they need to, and ultimately return a respond() callback with their response. This callback will respond with the supplied value to the designated receiver as determined by the _*Handler (be it a channel, private message, etc). For an better understanding, check out the observerHandler class.


(Total votes: 0)

File Author: Strong-Code
File Version: 14.17.2
File Added: Today
Last Updated: Today
File Size: 94.89 KB
Homepage: View
Downloads: 0

Comments 0