浏览代码

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
 
         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