Software Freedom Law Center

Changeset 126

Show
Ignore:
Timestamp:
06/04/08 18:17:02 (3 months ago)
Author:
landon
Message:

KISS, no need to do anything other than \!commands for now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/antimatter/luke/myplugs/tracker.py

    r125 r126  
    33from gozerbot.generic import waitforuser 
    44from gozerbot.commands import cmnds 
    5 from gozerbot.callbacks import callbacks 
    65 
    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 
     6def start_convo(bot, ievent): 
     7    print ievent.usercmnd,ievent.txt 
     8    print "DIRECT" 
    119 
    1210cmnds.add('time', start_convo, 'USER') 
    1311 
    14 def start_convo(bot, ievent): 
    15     print ievent 
    16     print "DIRECT" 
    17  
    18 def indirect_convo(bot, ievent): 
    19     print ievent 
    20     print "INDIRECT" 
    21  
    2212def time_handler(bot, ievent): 
    2313    # Ideally *_convo functions lead here transparently 
     14    return 1 

SFLC Main Page

[frdm] Support SFLC