소스 검색

Trimming and splitting commands by whitespaces

Lucas Villeneuve 5 년 전
부모
커밋
9f3a477ddc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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))