🤖 自动格式化代码 [skip ci]

pull/817/head
github-actions[bot] 2025-04-22 01:30:21 +00:00
parent 6a21f3408e
commit 273647f958
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ def is_mentioned_bot_in_message(message: MessageRecv) -> tuple[bool, float]:
else:
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
# 判断内容中是否被提及