1
0
Prechádzať zdrojové kódy

Trimming and splitting commands by whitespaces

Lucas Villeneuve 5 rokov pred
rodič
commit
9f3a477ddc
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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))