修改指令内容
This commit is contained in:
@@ -454,7 +454,7 @@ class XiuxianPlugin(MessagePluginInterface):
|
||||
return False
|
||||
content = str(message.get("content", "")).strip()
|
||||
for cmd in self._commands:
|
||||
if content.startswith(cmd):
|
||||
if content == cmd or content.startswith(f"{cmd} "):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user