Переглянути джерело

Fix bug with missing commands

Kirk Trombley 4 роки тому
батько
коміт
07fc4ac363
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      lib/rollbot/bot.py

+ 1 - 1
lib/rollbot/bot.py

@@ -57,7 +57,7 @@ class Rollbot(Generic[RawMsg]):
             return
             return
 
 
         command_call = self.command_config.commands.get(command, None)
         command_call = self.command_config.commands.get(command, None)
-        if command is None:
+        if command_call is None:
             await self.respond(Response.from_message(message, f"Sorry! I don't know the command {command}."))
             await self.respond(Response.from_message(message, f"Sorry! I don't know the command {command}."))
             return
             return