Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #============ Place me below "#Custom Command Executions" =====================
- def NextComicUpdate(params,message):
- now = datetime.datetime.now()
- updatetime = datetime.datetime(now.year,now.month,now.day,18, 0, 0, 0)
- if updatetime < now:
- updatetime = updatetime + datetime.timedelta(days=1)
- time = updatetime - now
- print(time)
- client.send_message(message.channel, "The next comic update should be in around "+ str(time).split(".")[0])
- #=======================Place me above "#Keep at end!"===========================
- AddCustomCommand("!comicupdate",NextComicUpdate)
Advertisement
Add Comment
Please, Sign In to add comment