diff --git a/pocketbot.py b/pocketbot.py index 233b411..23934c2 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -70,7 +70,10 @@ def on_message(message): now = datetime.datetime.now() switchdate = datetime.datetime(2017, 3, 3) 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) #Posts status of the UPS