examplederived.py 490 B

12345678910111213141516171819
  1. from event import Event
  2. try:
  3. from basemodule import BaseModule
  4. except ImportError:
  5. from modules.basemodule import BaseModule
  6. class ExampleDerived(BaseModule):
  7. def post_init(self):
  8. pass
  9. #custom = Event("__.custom__")
  10. #custom.define(msg_definition="^\.custom")
  11. #custom.subscribe(self)
  12. # register ourself to our new custom event
  13. #self.bot.register_event(custom, self)
  14. def handle(self, event):
  15. pass
  16. #self.say(event.channel, "custom event caught!")