Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding=utf-8
- """
- Eirbot's shitty season 4 counter
- """
- import re
- from willie import web
- from willie.module import commands, example
- from socket import timeout
- import string
- import HTMLParser
- import datetime
- @commands('timetos')
- @example('timetos')
- @example('timetos')
- def timetos(bot, trigger):
- diff = datetime.datetime(2013, 11, 24) - datetime.datetime.today()
- s4hours = diff.seconds/60/60
- s4mins = diff.seconds/60
- s4mins = diff.seconds/60 - (diff.seconds/60/60 * 60)
- s4days = diff.days
- timetos4 = "Days: " + str(diff.days) + " Hours: " + str(diff.seconds/60/60) + " Minutes: " + str(diff.seconds/60 - (diff.seconds/60/60 * 60)) + " For s4!"
- bot.reply(str(timetos4))
Advertisement
Add Comment
Please, Sign In to add comment