ubot2/doc/example-plugins/counter.py

10 lines
197 B
Python
Raw Normal View History

2014-11-17 21:22:37 -08:00
import time
crontable = []
outputs = []
crontable.append([5,"say_time"])
def say_time():
2014-11-18 10:20:15 -08:00
#NOTE: you must add a real channel ID for this to work
outputs.append(["D12345678", time.time()])