Changeset 126
- Timestamp:
- 06/04/08 18:17:02 (3 months ago)
- Files:
-
- trunk/antimatter/luke/myplugs/eval.pyc (modified) (previous)
- trunk/antimatter/luke/myplugs/tracker.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/antimatter/luke/myplugs/tracker.py
r125 r126 3 3 from gozerbot.generic import waitforuser 4 4 from gozerbot.commands import cmnds 5 from gozerbot.callbacks import callbacks6 5 7 def init(): 8 # Add a callback so messages of the form Start Time will work 9 callbacks.add("PRIVMSG", indirect_convo, threaded=True) 10 return 1 6 def start_convo(bot, ievent): 7 print ievent.usercmnd,ievent.txt 8 print "DIRECT" 11 9 12 10 cmnds.add('time', start_convo, 'USER') 13 11 14 def start_convo(bot, ievent):15 print ievent16 print "DIRECT"17 18 def indirect_convo(bot, ievent):19 print ievent20 print "INDIRECT"21 22 12 def time_handler(bot, ievent): 23 13 # Ideally *_convo functions lead here transparently 14 return 1