From c1b1e8c42a0988743c74a4c26c53d3394b786f5c Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Wed, 25 Jun 2025 17:23:05 +0800 Subject: [PATCH] =?UTF-8?q?remvoe=EF=BC=9A=E7=A7=BB=E9=99=A4=E6=97=A7?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=84=8F=E6=84=BF=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config_api.py | 1 - src/chat/normal_chat/willing/mode_classical.py | 7 ------- src/chat/normal_chat/willing/mode_mxp.py | 3 --- src/config/official_configs.py | 6 ------ template/bot_config_template.toml | 3 --- 5 files changed, 20 deletions(-) diff --git a/src/api/config_api.py b/src/api/config_api.py index 2e6a380ca..07f36a9d8 100644 --- a/src/api/config_api.py +++ b/src/api/config_api.py @@ -53,7 +53,6 @@ class APIBotConfig: thinking_timeout: int # 思考超时时间 willing_mode: str # 意愿模式 response_interested_rate_amplifier: float # 回复兴趣率放大器 - down_frequency_rate: float # 降低频率率 emoji_response_penalty: float # 表情回复惩罚 mentioned_bot_inevitable_reply: bool # 提及 bot 必然回复 at_bot_inevitable_reply: bool # @bot 必然回复 diff --git a/src/chat/normal_chat/willing/mode_classical.py b/src/chat/normal_chat/willing/mode_classical.py index 5ef1ed387..3ffe23c46 100644 --- a/src/chat/normal_chat/willing/mode_classical.py +++ b/src/chat/normal_chat/willing/mode_classical.py @@ -49,13 +49,6 @@ class ClassicalWillingManager(BaseWillingManager): reply_probability = min(max((current_willing - 0.5), 0.01) * 2, 1) - # 检查群组权限(如果是群聊) - if ( - willing_info.group_info - and willing_info.group_info.group_id in global_config.normal_chat.talk_frequency_down_groups - ): - reply_probability = reply_probability / global_config.normal_chat.down_frequency_rate - if is_emoji_not_reply: reply_probability = 0 diff --git a/src/chat/normal_chat/willing/mode_mxp.py b/src/chat/normal_chat/willing/mode_mxp.py index 2a294d0c5..03651d080 100644 --- a/src/chat/normal_chat/willing/mode_mxp.py +++ b/src/chat/normal_chat/willing/mode_mxp.py @@ -179,9 +179,6 @@ class MxpWillingManager(BaseWillingManager): if w_info.is_picid: probability = 0 # picid格式消息直接不回复 - if w_info.group_info and w_info.group_info.group_id in global_config.normal_chat.talk_frequency_down_groups: - probability /= global_config.normal_chat.down_frequency_rate - self.temporary_willing = current_willing return probability diff --git a/src/config/official_configs.py b/src/config/official_configs.py index 82e02d09e..0a93fbcdb 100644 --- a/src/config/official_configs.py +++ b/src/config/official_configs.py @@ -277,12 +277,6 @@ class NormalChatConfig(ConfigBase): response_interested_rate_amplifier: float = 1.0 """回复兴趣度放大系数""" - talk_frequency_down_groups: list[str] = field(default_factory=lambda: []) - """降低回复频率的群组""" - - down_frequency_rate: float = 3.0 - """降低回复频率的群组回复意愿降低系数""" - emoji_response_penalty: float = 0.0 """表情包回复惩罚系数""" diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index f3703e8b3..a9757a5ff 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -114,7 +114,6 @@ thinking_timeout = 120 # 麦麦最长思考时间,超过这个时间的思考 willing_mode = "classical" # 回复意愿模式 —— 经典模式:classical,mxp模式:mxp,自定义模式:custom(需要你自己实现) - response_interested_rate_amplifier = 1 # 麦麦回复兴趣度放大系数 emoji_response_penalty = 0 # 对其他人发的表情包回复惩罚系数,设为0为不回复单个表情包,减少单独回复表情包的概率 @@ -123,8 +122,6 @@ at_bot_inevitable_reply = true # @bot 必然回复(包含提及) enable_planner = false # 是否启用动作规划器(实验性功能,与focus_chat共享actions) -down_frequency_rate = 3 # 降低回复频率的群组回复意愿降低系数 除法 -talk_frequency_down_groups = [] #降低回复频率的群号码 [focus_chat] #专注聊天 think_interval = 3 # 思考间隔 单位秒,可以有效减少消耗