From 94b1b3c0e6041739bce1aeccf9aee0f2a2635dd0 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Mon, 21 Apr 2025 18:51:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=B0=91?= =?UTF-8?q?=E5=91=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/chat_module/heartFC_chat/pf_chatting.py | 2 +- src/plugins/chat_module/heartFC_chat/reasoning_chat.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/chat_module/heartFC_chat/pf_chatting.py b/src/plugins/chat_module/heartFC_chat/pf_chatting.py index e4486a795..92e3da549 100644 --- a/src/plugins/chat_module/heartFC_chat/pf_chatting.py +++ b/src/plugins/chat_module/heartFC_chat/pf_chatting.py @@ -70,7 +70,7 @@ class PFChatting: Args: chat_id: The identifier for the chat stream (e.g., stream_id). - heartfc_controller_instance: 访问共享资源和方法的主HeartFC_Controller实例。 + heartfc_controller_instance: 访问共享资源和方法的主HeartFCController实例。 """ self.heartfc_controller = heartfc_controller_instance # Store the controller instance self.stream_id: str = chat_id diff --git a/src/plugins/chat_module/heartFC_chat/reasoning_chat.py b/src/plugins/chat_module/heartFC_chat/reasoning_chat.py index 95d3641d5..5a9732d99 100644 --- a/src/plugins/chat_module/heartFC_chat/reasoning_chat.py +++ b/src/plugins/chat_module/heartFC_chat/reasoning_chat.py @@ -21,7 +21,7 @@ from src.plugins.person_info.relationship_manager import relationship_manager from src.plugins.respon_info_catcher.info_catcher import info_catcher_manager from src.plugins.utils.timer_calculater import Timer from .interest import InterestManager -from .heartFC_controler import HeartFC_Controller # 导入 HeartFC_Controller +from .heartFC_controler import HeartFCController # 导入 HeartFCController # 定义日志配置 chat_config = LogConfig( @@ -181,9 +181,9 @@ class ReasoningChat: async def _find_interested_message(self, chat: ChatStream) -> None: # 此函数设计为后台任务,轮询指定 chat 的兴趣消息。 # 它通常由外部代码在 chat 流活跃时启动。 - controller = HeartFC_Controller.get_instance() # 获取控制器实例 + controller = HeartFCController.get_instance() # 获取控制器实例 if not controller: - logger.error(f"无法获取 HeartFC_Controller 实例,无法检查 PFChatting 状态。stream: {chat.stream_id}") + logger.error(f"无法获取 HeartFCController 实例,无法检查 PFChatting 状态。stream: {chat.stream_id}") # 在没有控制器的情况下可能需要决定是继续处理还是完全停止?这里暂时假设继续 pass # 或者 return?