How do I set up a timer as a subprocess?

Dfenestr8 chrisdewinN0SPAM at yahoo.com.au
Thu Mar 10 11:29:31 EST 2005


Hi.

Trying to set up a timer function for my irc bot, which uses the python
irclib.py.

If I use time.sleep(20), it tends to freeze up the bot completely for 20
secs. That's not what I want though! I want the program to wait 20 secs,
then perform another function, but in the meantime be able to accept other
commands.

How do I do that? 



More information about the Python-list mailing list