Browse Source

Revert last commit

Kumi 1 năm trước cách đây
mục cha
commit
1b290c6b92
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/gptbot/classes/bot.py

+ 3 - 3
src/gptbot/classes/bot.py

@@ -321,9 +321,9 @@ class GPTBot:
         )
 
         if event.body.startswith("* "):
-            command = event.body[2:].split()[1] if event.body.split()[1:] else None
-        else:
-            command = event.body.split()[1] if event.body.split()[1:] else None
+            event.body = event.body[2:]
+
+        command = event.body.split()[1] if event.body.split()[1:] else None
 
         await COMMANDS.get(command, COMMANDS[None])(room, event, self)