Fix some logic errors
This commit is contained in:
parent
9a0da221e6
commit
a0497b00ff
4
bot.py
4
bot.py
@ -100,7 +100,7 @@ async def on_message(message):
|
|||||||
if message.content.startswith(prefix+command):
|
if message.content.startswith(prefix+command):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
args = message.content[len(message.content.split()[1])+1:]
|
args = message.content[len(message.content.split()[0])+1:]
|
||||||
await commands[command](message, args)
|
await commands[command](message, args)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -115,7 +115,7 @@ async def on_message(message):
|
|||||||
if message.content.startswith(prefix+command):
|
if message.content.startswith(prefix+command):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
args = message.content[len(message.content.split()[1])+1:]
|
args = message.content[len(message.content.split()[0])+1:]
|
||||||
await commands[command](message, args)
|
await commands[command](message, args)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user