Merge branch 'issue#816' of https://github.com/Dax233/MaiMBot into issue#816

This commit is contained in:
Bakadax
2025-04-22 09:34:19 +08:00

View File

@@ -76,7 +76,9 @@ def is_mentioned_bot_in_message(message: MessageRecv) -> tuple[bool, float]:
else: else:
if not is_mentioned: if not is_mentioned:
# 判断是否被回复 # 判断是否被回复
if re.match(f"\[回复 [\s\S]*?\({str(global_config.BOT_QQ)}\)[\s\S]*?\],说:", message.processed_plain_text): if re.match(
f"\[回复 [\s\S]*?\({str(global_config.BOT_QQ)}\)[\s\S]*?\],说:", message.processed_plain_text
):
is_mentioned = True is_mentioned = True
else: else:
# 判断内容中是否被提及 # 判断内容中是否被提及