Skip to content
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

TODO

  • The argument that the response object shows up in plugins as could be configurable

Clone this wiki locally