ubot2/doc/example-plugins/counter.py

14 lines
306 B
Python
Raw Normal View History

from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return
2014-11-17 21:22:37 -08:00
import time
crontable = []
outputs = []
crontable.append([5, "say_time"])
2014-11-17 21:22:37 -08:00
def say_time():
# NOTE: you must add a real channel ID for this to work
2014-11-18 10:20:15 -08:00
outputs.append(["D12345678", time.time()])