Explorar o código

Fix bug with missing commands

Kirk Trombley %!s(int64=4) %!d(string=hai) anos
pai
achega
07fc4ac363
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/rollbot/bot.py

+ 1 - 1
lib/rollbot/bot.py

@@ -57,7 +57,7 @@ class Rollbot(Generic[RawMsg]):
             return
 
         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}."))
             return