exceptional handling of exception
This commit is contained in:
parent
afaa57878b
commit
f29bc7764d
2 changed files with 17 additions and 2 deletions
8
doc/example-plugins/canary.py
Normal file
8
doc/example-plugins/canary.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import time
|
||||
outputs = []
|
||||
|
||||
def canary():
|
||||
#NOTE: you must add a real channel ID for this to work
|
||||
outputs.append(["D12345678", "bot started: " + str(time.time())])
|
||||
|
||||
canary()
|
Loading…
Add table
Add a link
Reference in a new issue