Changed commands to be case-insensitive

dev
pocketjawa 2017-02-21 05:33:11 +00:00
parent 77ede8e3c1
commit 0afa761fe8
1 changed files with 3 additions and 3 deletions

View File

@ -24,12 +24,12 @@ def on_ready():
@client.event @client.event
@asyncio.coroutine @asyncio.coroutine
def on_message(message): def on_message(message):
if message.content.startswith('!maki'): if message.content.lower().startswith('!maki'):
yield from client.send_message(message.channel, 'http://maki.pocketjawa.com/monday.png') yield from client.send_message(message.channel, 'http://maki.pocketjawa.com/monday.png')
elif message.content.startswith('!sleep'): elif message.content.lower().startswith('!sleep'):
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, 'Done sleeping')
elif message.content.startswith('!mixes'): elif message.content.lower().startswith('!mixes'):
yield from client.send_message(message.channel, 'You can download mp3s of any of my mixes at http://maki.pocketjawa.com/mixes/') yield from client.send_message(message.channel, 'You can download mp3s of any of my mixes at http://maki.pocketjawa.com/mixes/')