diff --git a/src/plugins/chat/utils.py b/src/plugins/chat/utils.py index 79b465f2..fdc143aa 100644 --- a/src/plugins/chat/utils.py +++ b/src/plugins/chat/utils.py @@ -48,6 +48,8 @@ def is_mentioned_bot_in_message(message: MessageRecv) -> bool: nicknames = global_config.BOT_ALIAS_NAMES message_content = re.sub(r'\[CQ:reply,[\s\S]*?\]','', message.raw_message) for keyword in keywords: + if f"[回复 {keyword} 的消息: " in message.processed_plain_text: + return True if keyword in message_content: return True for nickname in nicknames: