Added countdown to Smash
parent
21e10f24d7
commit
8283500514
|
@ -7,6 +7,7 @@
|
||||||
**!sleep**: Some cat tells you to sleep.
|
**!sleep**: Some cat tells you to sleep.
|
||||||
**!pokeme**: make the bot poke you gently.
|
**!pokeme**: make the bot poke you gently.
|
||||||
**!switch**: display time until the switch comes out!
|
**!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.
|
**!wtf**: Don't use unless you want a wall of copypasta.
|
||||||
**!ups**: Print the status of the main UPS. Updated once a minute.
|
**!ups**: Print the status of the main UPS. Updated once a minute.
|
||||||
**!tohru**: Posts a random pic of the one and only Tohru!
|
**!tohru**: Posts a random pic of the one and only Tohru!
|
||||||
|
|
11
pocketbot.py
11
pocketbot.py
|
@ -147,6 +147,17 @@ def on_message(message):
|
||||||
switchmsg = "The <:switchl:283809380137435139>Switch<:switchr:283809391835349004> is already out!!! <:pjchamp:231619017599746048>"
|
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)
|
||||||
|
|
||||||
|
#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
|
#Posts status of the UPS
|
||||||
elif message.content.lower().startswith('!ups'):
|
elif message.content.lower().startswith('!ups'):
|
||||||
ups_status = open("/tmp/ups_status.txt","r")
|
ups_status = open("/tmp/ups_status.txt","r")
|
||||||
|
|
Loading…
Reference in New Issue