diff --git a/helpcommand.txt b/helpcommand.txt index 967d8cd..277baae 100644 --- a/helpcommand.txt +++ b/helpcommand.txt @@ -7,6 +7,7 @@ **!sleep**: Some cat tells you to sleep. **!pokeme**: make the bot poke you gently. **!switch**: display time until the switch comes out! +**!smash**: display time until Smash comes out! **!wtf**: Don't use unless you want a wall of copypasta. **!ups**: Print the status of the main UPS. Updated once a minute. **!tohru**: Posts a random pic of the one and only Tohru! diff --git a/pocketbot.py b/pocketbot.py index 7416496..aa35b96 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -146,6 +146,17 @@ def on_message(message): else: switchmsg = "The <:switchl:283809380137435139>Switch<:switchr:283809391835349004> is already out!!! <:pjchamp:231619017599746048>" yield from client.send_message(message.channel, switchmsg) + + #Countdown until Smash comes out! + elif message.content.lower().startswith('!smash'): + now = datetime.datetime.now() + smashdate = datetime.datetime(2018, 12, 7) + smashdelta = smashdate - now + if (smashdelta.total_seconds() > 0): + smashmsg = "Only **%s** until Smash comes out!" % (smashdelta) + else: + smashmsg = "**Get ready to fucking Smaaaaaaash!!!** <:pjchamp:231619017599746048>" + yield from client.send_message(message.channel, smashmsg) #Posts status of the UPS elif message.content.lower().startswith('!ups'):