ubot2/doc/example-plugins/canary.py

13 lines
287 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-21 13:35:15 -08:00
import time
outputs = []
2014-11-21 13:35:15 -08:00
def canary():
# NOTE: you must add a real channel ID for this to work
2014-11-21 13:35:15 -08:00
outputs.append(["D12345678", "bot started: " + str(time.time())])
canary()