-
Notifications
You must be signed in to change notification settings - Fork 2
Core
theepicsnail edited this page Mar 6, 2011
·
2 revisions
The Core of SuperBot2 is the entry point to running SuperBot2 and is essentially a hub to connect the individual parts of SuperBot2.
The Core is responsible for:
- Providing the Event Handler to the Connector
- The event handler is a function that accepts the event dict from the Connector
- Gets the list of applicable functions from the PluginManager
- Enqueue each (function,event dict) tuple in the PluginDispatcher
- Getting the ResponseObject from the Connector, and passing it to plugins as an argument
- Setting the PluginDispatchers response handler
- ...to the Connectors HandleResponse function
- The argument that the response object shows up in plugins as could be configurable