在能量值上面动了点手脚,现在你可以在config里面重新配置群聊里面的聊天模式了

This commit is contained in:
Furina-1013-create
2025-08-13 13:34:21 +08:00
committed by Windpicker-owo
parent 99189921e1
commit e6976e4e50
3 changed files with 63 additions and 7 deletions

View File

@@ -212,6 +212,9 @@ class ChatConfig(ConfigBase):
force_focus_private: bool = False
"""是否强制私聊进入专注模式,开启后私聊将始终保持专注状态"""
group_chat_mode: Literal["auto", "normal", "focus"] = "auto"
"""群聊聊天模式设置auto-自动切换normal-强制普通模式focus-强制专注模式"""
def get_current_talk_frequency(self, chat_stream_id: Optional[str] = None) -> float:
"""
根据当前时间和聊天流获取对应的 talk_frequency