Sfoglia il codice sorgente

Fix bug with missing commands

Kirk Trombley 4 anni fa
parent
commit
07fc4ac363
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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