From d0c20b178a3dc1854992d7b5815a4b18106dadef Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Sun, 26 Feb 2017 21:44:57 -0500 Subject: [PATCH] Made the bot get excited if !switch is used after it is released --- pocketbot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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