From f3f75cd3208f0b5ad19882d9510c66d06db6eaa9 Mon Sep 17 00:00:00 2001 From: XBC_D2O Date: Sun, 9 Mar 2025 12:10:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A1=A8=E6=83=85=E5=8C=85?= =?UTF-8?q?=E5=AF=B9=E5=9B=9E=E5=A4=8D=E6=A6=82=E7=8E=87=E7=9A=84=E5=BD=B1?= =?UTF-8?q?=E5=93=8D=EF=BC=8C=E9=81=BF=E5=85=8D=E8=A1=A8=E6=83=85=E5=8C=85?= =?UTF-8?q?=E8=BF=87=E5=A4=9A=E6=97=B6=E6=84=8F=E6=84=BF=E8=BF=87=E4=BD=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/chat/willing_manager.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/chat/willing_manager.py b/src/plugins/chat/willing_manager.py index 001b6620..6db621b1 100644 --- a/src/plugins/chat/willing_manager.py +++ b/src/plugins/chat/willing_manager.py @@ -35,10 +35,6 @@ class WillingManager: current_willing += 0.05 print(f"被重复提及, 当前意愿: {current_willing}") - if is_emoji: - current_willing *= 0.1 - print(f"表情包, 当前意愿: {current_willing}") - print(f"放大系数_interested_rate: {global_config.response_interested_rate_amplifier}") interested_rate *= global_config.response_interested_rate_amplifier #放大回复兴趣度 if interested_rate > 0.4: @@ -49,6 +45,11 @@ class WillingManager: # print(f"放大系数_willing: {global_config.response_willing_amplifier}, 当前意愿: {current_willing}") reply_probability = max((current_willing - 0.45) * 2, 0) + + if is_emoji: + reply_probability *= 0.1 + print(f"表情包, 当前可能性 {reply_probability}") + if group_id not in config.talk_allowed_groups: current_willing = 0 reply_probability = 0