修改指令内容
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user