Spiced up the sleep command

dev
pocketjawa 2018-03-02 23:15:19 -05:00
parent ff2d83e36d
commit c9e15c2a39
2 changed files with 7 additions and 2 deletions

View File

@ -4,7 +4,7 @@
**!maki** or **!monday**: Posts a picture of Maki. Don't forget to praise on Monday! **!maki** or **!monday**: Posts a picture of Maki. Don't forget to praise on Monday!
**!mixes**: post link to my fire mixtapes **!mixes**: post link to my fire mixtapes
**!rmix**: post link to a random mix of mine **!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 **!pokeme**: make the bot poke you gently
**!switch**: display time until the switch comes out! **!switch**: display time until the switch comes out!
**!wtf**: Don't use unless you want a wall of copypasta **!wtf**: Don't use unless you want a wall of copypasta

View File

@ -90,8 +90,13 @@ def on_message(message):
#Sleeps for 5 seconds. Don't know why I still have this tbh #Sleeps for 5 seconds. Don't know why I still have this tbh
elif message.content.lower().startswith('!sleep'): 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 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 #Posts link to my mix archive
elif message.content.lower().startswith('!mixes'): elif message.content.lower().startswith('!mixes'):