From c8fac6c513fc41693b61edbf4049a1249e5eb602 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 2 Jun 2025 04:46:33 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20=E8=87=AA=E5=8A=A8=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/focus_chat/heartFC_Cycleinfo.py | 9 +++++++-- src/config/official_configs.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) 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 """是否启用思维处理器"""