From c9e15c2a39caf08ee3ceb6a08a5c29063f2e42d6 Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Fri, 2 Mar 2018 23:15:19 -0500 Subject: [PATCH] Spiced up the sleep command --- helpcommand.txt | 2 +- pocketbot.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/helpcommand.txt b/helpcommand.txt index df8b29b..4e60b95 100644 --- a/helpcommand.txt +++ b/helpcommand.txt @@ -4,7 +4,7 @@ **!maki** or **!monday**: Posts a picture of Maki. Don't forget to praise on Monday! **!mixes**: post link to my fire mixtapes **!rmix**: post link to a random mix of mine -**!sleep**: sleep for like 5 seconds for some reason +**!sleep**: Some cat tells you to sleep. **!pokeme**: make the bot poke you gently **!switch**: display time until the switch comes out! **!wtf**: Don't use unless you want a wall of copypasta diff --git a/pocketbot.py b/pocketbot.py index b216e97..9ed4038 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -90,8 +90,13 @@ def on_message(message): #Sleeps for 5 seconds. Don't know why I still have this tbh elif message.content.lower().startswith('!sleep'): + output = "Aren't you tired?\nLet's call it a day\nand get some sleep." + sleepemb = discord.Embed(description=output) + sleepemb.set_author(name="Morgana") + sleepemb.set_thumbnail(url="https://cdn.discordapp.com/emojis/396429379686629378.png") + yield from client.send_message(message.channel, embed=sleepemb) yield from asyncio.sleep(5) - yield from client.send_message(message.channel, 'Done sleeping') + yield from client.send_message(message.channel, 'Ok, done sleeping') #Posts link to my mix archive elif message.content.lower().startswith('!mixes'):