Skip to content

Instantly share code, notes, and snippets.

@maxpowa
Created January 13, 2016 00:35
Show Gist options
  • Save maxpowa/5e0901d7b70493067352 to your computer and use it in GitHub Desktop.
Save maxpowa/5e0901d7b70493067352 to your computer and use it in GitHub Desktop.
# coding=utf-8
"""
repeat_msg.py - Example interval module
Licensed under WTFPL (https://en.wikipedia.org/wiki/WTFPL)
"""
from sopel.module import interval
@interval(60) # Every 60 seconds
def do_the_thing(bot):
bot.msg('#some_channel', '60 seconds has elapsed')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment