mirror of https://github.com/Mai-with-u/MaiBot.git
更改log,remade和版本
parent
4c7e670f86
commit
9ac6801f87
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
## 🔥 更新和安装
|
||||
|
||||
**最新版本: v0.10.1** ([更新日志](changelogs/changelog.md))
|
||||
**最新版本: v0.10.2** ([更新日志](changelogs/changelog.md))
|
||||
|
||||
可前往 [Release](https://github.com/MaiM-with-u/MaiBot/releases/) 页面下载最新版本
|
||||
可前往 [启动器发布页面](https://github.com/MaiM-with-u/mailauncher/releases/)下载最新启动器
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
0.10.3饼:
|
||||
重名问题
|
||||
动态频率进一步优化
|
||||
|
||||
|
||||
## [0.10.2] - 2025-8-31
|
||||
### 🌟 主要功能更改
|
||||
|
|
|
|||
|
|
@ -295,17 +295,17 @@ class FrequencyControl:
|
|||
# 计算实际变化方向
|
||||
actual_change = ""
|
||||
if self.talk_frequency_adjust > old_adjust:
|
||||
actual_change = f"(实际提高: {old_adjust:.2f}→{self.talk_frequency_adjust:.2f})"
|
||||
actual_change = f"{old_adjust:.2f}x → {self.talk_frequency_adjust:.2f}x"
|
||||
elif self.talk_frequency_adjust < old_adjust:
|
||||
actual_change = f"(实际降低: {old_adjust:.2f}→{self.talk_frequency_adjust:.2f})"
|
||||
actual_change = f"{old_adjust:.2f}x → {self.talk_frequency_adjust:.2f}x"
|
||||
else:
|
||||
actual_change = f"(无变化: {self.talk_frequency_adjust:.2f})"
|
||||
actual_change = f"无变化: {self.talk_frequency_adjust:.2f}x"
|
||||
|
||||
logger.info(
|
||||
f"{self.log_prefix} 发言频率调整: "
|
||||
f"当前: {message_count}消息/{user_count}用户, 人均: {message_count/user_count if user_count > 0 else 0:.2f}消息|"
|
||||
f"基准: {current_hour_10min_messages:.2f}消息/{current_hour_10min_users:.2f}用户,人均:{current_hour_10min_messages/current_hour_10min_users if current_hour_10min_users > 0 else 0:.2f}消息|"
|
||||
f"目标调整: {adjust_direction}到{target_talk_adjust:.2f}, 实际结果: {self.talk_frequency_adjust:.2f} {actual_change}"
|
||||
f"{user_count}名用户正在参与聊天,当前消息数: {message_count}|"
|
||||
f"群基准: {current_hour_10min_messages:.2f}消息/{current_hour_10min_users:.2f}用户|"
|
||||
f"[{adjust_direction}]{actual_change}"
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
|
|
@ -407,18 +407,17 @@ class FrequencyControl:
|
|||
# 计算实际变化方向
|
||||
actual_change = ""
|
||||
if self.focus_value_adjust > old_focus_adjust:
|
||||
actual_change = f"(实际提高: {old_focus_adjust:.2f}→{self.focus_value_adjust:.2f})"
|
||||
actual_change = f"{old_focus_adjust:.2f}x → {self.focus_value_adjust:.2f}x"
|
||||
elif self.focus_value_adjust < old_focus_adjust:
|
||||
actual_change = f"(实际降低: {old_focus_adjust:.2f}→{self.focus_value_adjust:.2f})"
|
||||
actual_change = f"{old_focus_adjust:.2f}x → {self.focus_value_adjust:.2f}x"
|
||||
else:
|
||||
actual_change = f"(无变化: {self.focus_value_adjust:.2f})"
|
||||
actual_change = f"无变化: {self.focus_value_adjust:.2f}x"
|
||||
|
||||
logger.info(
|
||||
f"{self.log_prefix} 专注度调整(10分钟): "
|
||||
f"当前: {message_count}消息/{user_count}用户,人均:{message_count/user_count if user_count > 0 else 0:.2f}消息|"
|
||||
f"基准: {current_hour_10min_messages:.2f}消息/{current_hour_10min_users:.2f}用户,人均:{current_hour_10min_messages/current_hour_10min_users if current_hour_10min_users > 0 else 0:.2f}消息|"
|
||||
f"比率: 用户{user_count/current_hour_10min_users if current_hour_10min_users > 0 else 0:.2f}x, 消息{message_count/current_hour_10min_messages if current_hour_10min_messages > 0 else 0:.2f}x, "
|
||||
f"目标调整: {adjust_direction}到{target_focus_adjust:.2f}, 实际结果: {self.focus_value_adjust:.2f} {actual_change}"
|
||||
f"{self.log_prefix} 专注度调整: "
|
||||
f"{user_count}名用户正在参与聊天,当前消息数: {message_count}|"
|
||||
f"群基准: {current_hour_10min_messages:.2f}消息/{current_hour_10min_users:.2f}用户|"
|
||||
f"[{adjust_direction}]{actual_change}"
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
|||
|
|
@ -175,8 +175,8 @@ class HeartFChatting:
|
|||
|
||||
logger.info(
|
||||
f"{self.log_prefix} 第{self._current_cycle_detail.cycle_id}次思考,"
|
||||
f"耗时: {self._current_cycle_detail.end_time - self._current_cycle_detail.start_time:.1f}秒, " # type: ignore
|
||||
f"选择动作: {action_type}" + (f"\n详情: {'; '.join(timer_strings)}" if timer_strings else "")
|
||||
f"耗时: {self._current_cycle_detail.end_time - self._current_cycle_detail.start_time:.1f}秒" # type: ignore
|
||||
+ (f"\n详情: {'; '.join(timer_strings)}" if timer_strings else "")
|
||||
)
|
||||
|
||||
async def caculate_interest_value(self, recent_messages_list: List["DatabaseMessages"]) -> float:
|
||||
|
|
@ -295,6 +295,7 @@ class HeartFChatting:
|
|||
|
||||
if random.random() < normal_mode_probability:
|
||||
interest_triggerd = True
|
||||
|
||||
logger.info(
|
||||
f"{self.log_prefix} 有新消息,在{normal_mode_probability * 100:.0f}%概率下选择回复"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ TEMPLATE_DIR = os.path.join(PROJECT_ROOT, "template")
|
|||
|
||||
# 考虑到,实际上配置文件中的mai_version是不会自动更新的,所以采用硬编码
|
||||
# 对该字段的更新,请严格参照语义化版本规范:https://semver.org/lang/zh-CN/
|
||||
MMC_VERSION = "0.10.2-snapshot.3"
|
||||
MMC_VERSION = "0.10.2"
|
||||
|
||||
|
||||
def get_key_comment(toml_table, key):
|
||||
|
|
|
|||
Loading…
Reference in New Issue