picapi_

Untitled

Dec 30th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #============ Place me below "#Custom Command Executions" =====================
  2. def NextComicUpdate(params,message):
  3. now = datetime.datetime.now()
  4. updatetime = datetime.datetime(now.year,now.month,now.day,18, 0, 0, 0)
  5. if updatetime < now:
  6. updatetime = updatetime + datetime.timedelta(days=1)
  7. time = updatetime - now
  8. print(time)
  9. client.send_message(message.channel, "The next comic update should be in around "+ str(time).split(".")[0])
  10.  
  11. #=======================Place me above "#Keep at end!"===========================
  12. AddCustomCommand("!comicupdate",NextComicUpdate)
Advertisement
Add Comment
Please, Sign In to add comment