Advertisement
kbmonkey

Ibid state handler

Mar 29th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. # Goal: monitor channel joins
  2. # http://ibid.omnia.za.net/docs/0.1.0/api/ibid.plugins.html
  3. # "request specific types of events through the class attributes"
  4. from ibid.plugins import Processor
  5. from ibid.plugins import handler
  6.  
  7. class StateChecker(Processor):
  8.     event_types=('state',)
  9.     @handler
  10.     def defaultHandler(self, event):
  11.         logging.debug('state checking...')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement