From 6326019390da8851b57b65956a02cc491ef3257e Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Sat, 2 May 2026 18:47:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=85=8D=E7=BD=AE=E5=90=8D?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/utils/utils.py | 2 +- src/maisaka/runtime.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/utils/utils.py b/src/chat/utils/utils.py index 5ac2d256..2d5f3f3a 100644 --- a/src/chat/utils/utils.py +++ b/src/chat/utils/utils.py @@ -223,7 +223,7 @@ def is_mentioned_bot_in_message(message: SessionMessage) -> tuple[bool, bool, fl break # 7) 概率设置 - if is_at and getattr(global_config.chat, "at_bot_inevitable_reply", 1): + if is_at and getattr(global_config.chat, "inevitable_at_reply", 1): reply_probability = 1.0 logger.debug("被@,回复概率设置为100%") elif is_mentioned and getattr(global_config.chat, "mentioned_bot_reply", 1): diff --git a/src/maisaka/runtime.py b/src/maisaka/runtime.py index e3ccf739..88c6e4a0 100644 --- a/src/maisaka/runtime.py +++ b/src/maisaka/runtime.py @@ -481,7 +481,7 @@ class MaisakaHeartFlowChatting: should_force_reply = ( reply_probability_boost >= 1.0 - or (message.is_at and global_config.chat.at_bot_inevitable_reply) + or (message.is_at and global_config.chat.inevitable_at_reply) or (message.is_mentioned and global_config.chat.mentioned_bot_reply) ) if not should_force_reply or (not message.is_at and not message.is_mentioned):