From a0497b00ffe71827ce8c642e45e427ebd0bb3cc0 Mon Sep 17 00:00:00 2001 From: archfan <33993466+archfan7411@users.noreply.github.com> Date: Sat, 23 Mar 2019 14:07:53 -0400 Subject: [PATCH] Fix some logic errors --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 225fc45..abb636c 100644 --- a/bot.py +++ b/bot.py @@ -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: