bug:修复上次更新后不响应的问题

This commit is contained in:
chordfish
2023-03-10 12:43:07 +08:00
parent 5a5ebb95fc
commit a810158d5b
2 changed files with 12 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ import pkg.plugin.models as plugin_models
# 检查消息是否符合泛响应匹配机制
def check_response_rule(text: str, event):
def check_response_rule(text: str):
config = pkg.utils.context.get_config()
if not hasattr(config, 'response_rules'):
return False, ''
@@ -318,7 +318,7 @@ class QQBotManager:
# 直接调用
reply = process()
else:
check, result = check_response_rule(str(event.message_chain).strip(), event)
check, result = check_response_rule(str(event.message_chain).strip())
if check:
reply = process(result.strip())