Update src/plugins/chat_module/reasoning_chat/reasoning_chat.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
Bakadax
2025-04-06 15:07:36 +08:00
committed by GitHub
parent a3e2604a1c
commit 99e166a0fb

View File

@@ -190,7 +190,7 @@ class ReasoningChat:
reply_probability = 0
is_at = False
is_mentioned = False
if re.match(f"@[\s\S]*?id:{global_config.BOT_QQ}", message.processed_plain_text):
if re.search(f"@[\s\S]*?id:{global_config.BOT_QQ}", message.processed_plain_text):
is_at = True
is_mentioned = True