Explorar el Código

Fix bug with missing commands

Kirk Trombley hace 4 años
padre
commit
07fc4ac363
Se han modificado 1 ficheros con 1 adiciones y 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