浏览代码

Fix commands being invoked without the prefix

pull/2/head
父节点
当前提交
8010535b95
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      _twitchbot/config.py

+ 4
- 2
_twitchbot/config.py 查看文件

@@ -148,8 +148,10 @@ class Config:
)

def find_command(self, command: str) -> Union[None, Command]:
if command.startswith(self.command_prefix):
command = command[1:]
if not command.startswith(self.command_prefix):
return None

command = command[1:]

for c in self.commands:
if c.name == command or command in c.aliases:


正在加载...
取消
保存