disconnect_yeller.py 408 B

1234567891011121314151617
  1. from event import Event
  2. try:
  3. from basemodule import BaseModule
  4. except ImportError:
  5. from modules.basemodule import BaseModule
  6. class Disconnect_Yeller(BaseModule):
  7. def post_init(self):
  8. self.interests = ['__.help__']
  9. for event in self.events:
  10. if event._type in self.interests:
  11. event.subscribe(self)
  12. def handle(self, event):
  13. print "I'VE BEEN DISCONNECTED"
  14. print "OH COCK"