Changed commands to be case-insensitive
parent
77ede8e3c1
commit
0afa761fe8
|
@ -24,12 +24,12 @@ def on_ready():
|
|||
@client.event
|
||||
@asyncio.coroutine
|
||||
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')
|
||||
elif message.content.startswith('!sleep'):
|
||||
elif message.content.lower().startswith('!sleep'):
|
||||
yield from asyncio.sleep(5)
|
||||
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/')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue