Skip to content

Instantly share code, notes, and snippets.

@sumeet
Created June 1, 2010 05:58
Show Gist options
  • Save sumeet/420614 to your computer and use it in GitHub Desktop.
Save sumeet/420614 to your computer and use it in GitHub Desktop.
An artie timer example.
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