修改指令内容

This commit is contained in:
liuwei
2025-11-27 17:39:04 +08:00
parent 59e5001e47
commit 9259e4f3d1

View File

@@ -454,7 +454,7 @@ class XiuxianPlugin(MessagePluginInterface):
return False return False
content = str(message.get("content", "")).strip() content = str(message.get("content", "")).strip()
for cmd in self._commands: for cmd in self._commands:
if content.startswith(cmd): if content == cmd or content.startswith(f"{cmd} "):
return True return True
return False return False