Made the bot get excited if !switch is used after it is released

dev
pocketjawa 2017-02-26 21:44:57 -05:00
parent 06e200aac3
commit d0c20b178a
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@ def on_message(message):
now = datetime.datetime.now() now = datetime.datetime.now()
switchdate = datetime.datetime(2017, 3, 3) switchdate = datetime.datetime(2017, 3, 3)
switchdelta = switchdate - now switchdelta = switchdate - now
switchmsg = "<:switchl:283809380137435139>Only **%s** until the Switch comes out!<:switchr:283809391835349004>" % (switchdelta) if (switchdelta.total_seconds() > 0):
switchmsg = "<:switchl:283809380137435139>Only **%s** until the Switch comes out!<:switchr:283809391835349004>" % (switchdelta)
else:
switchmsg = "The <:switchl:283809380137435139>Switch<:switchr:283809391835349004> is already out!!! <:pjchamp:231619017599746048>"
yield from client.send_message(message.channel, switchmsg) yield from client.send_message(message.channel, switchmsg)
#Posts status of the UPS #Posts status of the UPS