-
Notifications
You must be signed in to change notification settings - Fork 2
The event handler
Marlin Cremers edited this page Apr 28, 2012
·
10 revisions
The framework has a built-in event handler.
Assigning a event to a function is pretty easy. It is done this way:
addEventCallback(string $eventName, callback $function);
- Name: onJoin
- Data: IRCBot_Commands_Join instance
- Name: onPart
- Data: IRCBot_Commands_Part instance
- Name: onTopic
- Data: IRCBot_Commands_Topic instance or IRCBot_Types_Numeric instance
- Name: onError
- Data: IRCBot_Commands_Error instance
- Name: onNameReply
- Date: IRCBot_Types_NameReply instance