From 813c0eb7870c9ad1b0e8e939298e3ed8eb4bca06 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 29 May 2025 05:53:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20=E8=87=AA=E5=8A=A8=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/utils/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat/utils/utils.py b/src/chat/utils/utils.py index 1e60521e6..3952d3dc0 100644 --- a/src/chat/utils/utils.py +++ b/src/chat/utils/utils.py @@ -64,16 +64,16 @@ def is_mentioned_bot_in_message(message: MessageRecv) -> tuple[bool, float]: if global_config.bot.nickname in message.processed_plain_text: is_mentioned = True - + for alias_name in global_config.bot.alias_names: if alias_name in message.processed_plain_text: is_mentioned = True - + # 判断是否被@ if re.search(rf"@<(.+?):{global_config.bot.qq_account}>", message.processed_plain_text): is_at = True is_mentioned = True - + # print(f"message.processed_plain_text: {message.processed_plain_text}") # print(f"is_mentioned: {is_mentioned}") # print(f"is_at: {is_at}")