Fix some logic errors

This commit is contained in:
archfan 2019-03-23 14:07:53 -04:00 committed by GitHub
parent 9a0da221e6
commit a0497b00ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
bot.py
View File

@ -100,7 +100,7 @@ async def on_message(message):
if message.content.startswith(prefix+command):
try:
args = message.content[len(message.content.split()[1])+1:]
args = message.content[len(message.content.split()[0])+1:]
await commands[command](message, args)
except Exception as e:
@ -115,7 +115,7 @@ async def on_message(message):
if message.content.startswith(prefix+command):
try:
args = message.content[len(message.content.split()[1])+1:]
args = message.content[len(message.content.split()[0])+1:]
await commands[command](message, args)
except Exception as e: