chore: update tests

This commit is contained in:
Soulter
2024-12-25 12:49:58 +08:00
parent 7c06d82f27
commit b8a6fb1720
6 changed files with 363 additions and 8 deletions
+3
View File
@@ -51,6 +51,9 @@ class CommandFilter(HandlerFilter, ParameterValidationMixin):
ls = re.split(r"\s+", message_str)
if self.command_name != ls[0]:
return False
if len(self.handler_params) == 0 and len(ls) > 1:
# 一定程度避免 LLM 聊天时误判为指令
return False
# params_str = message_str[len(self.command_name):].strip()
ls = ls[1:]
# 去除空字符串