ubot2/doc/example-plugins/counter.py

10 lines
200 B
Python

import time
crontable = []
outputs = []
crontable.append([5, "say_time"])
def say_time():
# NOTE: you must add a real channel ID for this to work
outputs.append(["D12345678", time.time()])