Jelajahi Sumber

Trimming and splitting commands by whitespaces

Lucas Villeneuve 5 tahun lalu
induk
melakukan
9f3a477ddc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      myanimebot/discord.py

+ 1 - 1
myanimebot/discord.py

@@ -41,7 +41,7 @@ class MyAnimeBot(discord.Client):
     async def on_message(self, message):
         if message.author == globals.client.user: return
 
-        words = message.content.split(" ")
+        words = message.content.strip().split()
         channel = message.channel
         author = str('{0.author.mention}'.format(message))