From 732bc4a801883aba35e7784458bab4158f2a973d Mon Sep 17 00:00:00 2001 From: 2829798842 <2829798842@qq.com> Date: Wed, 9 Apr 2025 09:56:49 +0800 Subject: [PATCH 1/3] Update mode_dynamic.py --- src/plugins/willing/mode_dynamic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/willing/mode_dynamic.py b/src/plugins/willing/mode_dynamic.py index ce188c56c..eea5845ee 100644 --- a/src/plugins/willing/mode_dynamic.py +++ b/src/plugins/willing/mode_dynamic.py @@ -158,7 +158,7 @@ class WillingManager: logger.debug(f"被提及, 当前意愿: {current_willing}") if is_emoji: - current_willing *= 0.1 + current_willing = global_config.emoji_response_penalty * 0.1 logger.debug(f"表情包, 当前意愿: {current_willing}") # 根据话题兴趣度适当调整 @@ -180,7 +180,7 @@ class WillingManager: base_probability = 0.30 if msg_count >= 15 else 0.03 * min(msg_count, 10) # 考虑回复意愿的影响 - reply_probability = base_probability * current_willing + reply_probability = base_probability * current_willing * config.response_willing_amplifier # 检查群组权限(如果是群聊) if chat_stream.group_info and config: From de219e50cbbfbc472730d4b229be94983439e7f9 Mon Sep 17 00:00:00 2001 From: 2829798842 <2829798842@qq.com> Date: Wed, 9 Apr 2025 10:21:03 +0800 Subject: [PATCH 2/3] Update mode_dynamic.py --- src/plugins/willing/mode_dynamic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/willing/mode_dynamic.py b/src/plugins/willing/mode_dynamic.py index eea5845ee..3d2ca6e77 100644 --- a/src/plugins/willing/mode_dynamic.py +++ b/src/plugins/willing/mode_dynamic.py @@ -163,7 +163,7 @@ class WillingManager: # 根据话题兴趣度适当调整 if interested_rate > 0.5: - current_willing += (interested_rate - 0.5) * 0.5 + current_willing += (interested_rate - 0.5) * 0.5 * global_config.response_interested_rate_amplifier # 根据当前模式计算回复概率 base_probability = 0.0 @@ -180,7 +180,7 @@ class WillingManager: base_probability = 0.30 if msg_count >= 15 else 0.03 * min(msg_count, 10) # 考虑回复意愿的影响 - reply_probability = base_probability * current_willing * config.response_willing_amplifier + reply_probability = base_probability * current_willing * global_config.response_willing_amplifier # 检查群组权限(如果是群聊) if chat_stream.group_info and config: From 1d4d660f2d37617fac26d4ac788211a60ecee869 Mon Sep 17 00:00:00 2001 From: 2829798842 <2829798842@qq.com> Date: Wed, 9 Apr 2025 12:38:18 +0800 Subject: [PATCH 3/3] Update chat_observer.py