Created
June 1, 2010 05:58
-
-
Save sumeet/420614 to your computer and use it in GitHub Desktop.
An artie timer example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from artie.applications import timer | |
@timer(10) | |
def hi(irc): | |
""" | |
Sends a message to every channel the bot is in every 10 seconds. | |
""" | |
for channel in irc.channels: | |
irc.msg(channel, 'hi i am artie') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment