diff --git a/src/chat/focus_chat/heartFC_Cycleinfo.py b/src/chat/focus_chat/heartFC_Cycleinfo.py index 88ea5139e..134c808bb 100644 --- a/src/chat/focus_chat/heartFC_Cycleinfo.py +++ b/src/chat/focus_chat/heartFC_Cycleinfo.py @@ -90,11 +90,16 @@ class CycleDetail: else: # 只保留中文、英文字母、数字和基本标点 allowed_chars = set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_") - self.prefix = "".join(char for char in self.prefix if "\u4e00" <= char <= "\u9fff" or char in allowed_chars) or "group" + self.prefix = ( + "".join(char for char in self.prefix if "\u4e00" <= char <= "\u9fff" or char in allowed_chars) + or "group" + ) current_time_minute = time.strftime("%Y%m%d_%H%M", time.localtime()) try: - self.log_cycle_to_file(log_dir + self.prefix + f"/{current_time_minute}_cycle_" + str(self.cycle_id) + ".json") + self.log_cycle_to_file( + log_dir + self.prefix + f"/{current_time_minute}_cycle_" + str(self.cycle_id) + ".json" + ) except Exception as e: logger.warning(f"写入文件日志,可能是群名称包含非法字符: {e}") diff --git a/src/config/official_configs.py b/src/config/official_configs.py index 3ec6c6884..a71eeb087 100644 --- a/src/config/official_configs.py +++ b/src/config/official_configs.py @@ -157,7 +157,7 @@ class FocusChatConfig(ConfigBase): @dataclass class FocusChatProcessorConfig(ConfigBase): """专注聊天处理器配置类""" - + mind_processor: bool = True """是否启用思维处理器"""