启动不报错

pull/937/head
Bakadax 2025-05-14 20:39:38 +08:00
parent feac1f6dc3
commit 7e23d52b8d
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ def is_mentioned_bot_in_message(message: MessageRecv) -> tuple[bool, float]:
)
# 判断是否被@
if re.search(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
@ -75,7 +75,7 @@ def is_mentioned_bot_in_message(message: MessageRecv) -> tuple[bool, float]:
if not is_mentioned:
# 判断是否被回复
if re.match(
f"\[回复 [\s\S]*?\({str(global_config.BOT_QQ)}\)[\s\S]*?],说:", message.processed_plain_text
f"\\[回复 [\\s\\S]*?\\({str(global_config.BOT_QQ)}\\)[\\s\\S]*?\\],说:", message.processed_plain_text
):
is_mentioned = True
else: