Add files via upload

This commit is contained in:
瑾星Mcc
2025-03-04 20:40:52 +08:00
committed by GitHub
parent f4c383caf3
commit caa8c491cf
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ class ChatBot:
current_willing = willing_manager.get_willing(event.group_id)
print(f"\033[1;32m[{current_time}][{message.group_name}]{message.user_nickname}:\033[0m {message.processed_plain_text}\033[1;36m[回复意愿:{current_willing:.2f}][概率:{reply_probability:.1f}]\033[0m")
print(f"\033[1;32m[{current_time}][{message.group_name}]{message.user_nickname}:\033[0m {message.processed_plain_text}\033[1;36m[回复意愿:{current_willing:.2f}][概率:{reply_probability * 100:.1f}%]\033[0m")
response = ""
# 创建思考消息
if random() < reply_probability:

View File

@@ -50,7 +50,7 @@ class WillingManager:
self.group_reply_willing[group_id] = min(current_willing, 3.0)
reply_probability = (current_willing - 0.5) * 2
reply_probability = max((current_willing - 0.5) * 2, 0)
if group_id not in config.talk_allowed_groups:
current_willing = 0
reply_probability = 0