ubot2/doc/example-plugins/repeat.py

9 lines
227 B
Python
Raw Normal View History

2014-11-17 21:22:37 -08:00
import time
crontable = []
outputs = []
def process_message(data):
if data['channel'].startswith("D"):
2014-12-08 15:31:55 -08:00
outputs.append([data['channel'], "from repeat1 \"{}\" in channel {}".format(data['text'], data['channel']) ])
2014-11-17 21:22:37 -08:00