Add files via upload

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

No files matched your search

+1 -1
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:
+1 -1
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