Update src/chat/utils/utils.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/995/head
zrzluck99 2025-05-27 22:22:15 +08:00 committed by GitHub
parent 43be52a2b3
commit e25755118e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -64,9 +64,7 @@ def is_mentioned_bot_in_message(message: MessageRecv) -> tuple[bool, float]:
# 判断是否被@
if re.search(
rf"@(.+?)id:{global_config.bot.qq_account}", message.processed_plain_text
) or re.search(
rf"@<(.+?)(?=:{global_config.bot.qq_account}>)\:{global_config.bot.qq_account}>", message.processed_plain_text
rf"@<(.+?):{global_config.bot.qq_account}>"
):
is_at = True
is_mentioned = True