From eacdbb8d31e5638341a352007088dc586de30cb0 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Mon, 9 Jun 2025 23:53:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=9C=AA=E7=9F=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/message_receive/bot.py | 2 +- src/main.py | 2 +- .../example_command_plugin/commands/custom_prefix_command.py | 2 +- src/plugins/example_command_plugin/commands/help_command.py | 2 +- .../example_command_plugin/commands/message_info_command.py | 2 +- src/plugins/example_command_plugin/commands/send_msg_commad.py | 2 +- .../example_command_plugin/commands/send_msg_enhanced.py | 2 +- .../example_command_plugin/commands/send_msg_with_context.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/chat/message_receive/bot.py b/src/chat/message_receive/bot.py index ffe7b8aeb..b7a292c41 100644 --- a/src/chat/message_receive/bot.py +++ b/src/chat/message_receive/bot.py @@ -10,7 +10,7 @@ from src.experimental.PFC.pfc_manager import PFCManager from src.chat.focus_chat.heartflow_message_processor import HeartFCMessageReceiver from src.chat.utils.prompt_builder import Prompt, global_prompt_manager from src.config.config import global_config -from src.chat.message_receive.command_handler import command_manager # 导入命令管理器 +from src.chat.command.command_handler import command_manager # 导入命令管理器 # 定义日志配置 diff --git a/src/main.py b/src/main.py index a2750c803..f7df8ee16 100644 --- a/src/main.py +++ b/src/main.py @@ -144,7 +144,7 @@ class MainSystem: # 加载命令处理系统 try: # 导入命令处理系统 - from src.chat.message_receive.command_handler import command_manager + from src.chat.command.command_handler import command_manager logger.success("命令处理系统加载成功") except Exception as e: logger.error(f"加载命令处理系统失败: {e}") diff --git a/src/plugins/example_command_plugin/commands/custom_prefix_command.py b/src/plugins/example_command_plugin/commands/custom_prefix_command.py index 4169c10d8..932cc062b 100644 --- a/src/plugins/example_command_plugin/commands/custom_prefix_command.py +++ b/src/plugins/example_command_plugin/commands/custom_prefix_command.py @@ -1,5 +1,5 @@ from src.common.logger_manager import get_logger -from src.chat.message_receive.command_handler import BaseCommand, register_command +from src.chat.command.command_handler import BaseCommand, register_command from typing import Tuple, Optional import random diff --git a/src/plugins/example_command_plugin/commands/help_command.py b/src/plugins/example_command_plugin/commands/help_command.py index f1b3cd35e..f2b440710 100644 --- a/src/plugins/example_command_plugin/commands/help_command.py +++ b/src/plugins/example_command_plugin/commands/help_command.py @@ -1,5 +1,5 @@ from src.common.logger_manager import get_logger -from src.chat.message_receive.command_handler import BaseCommand, register_command, _COMMAND_REGISTRY +from src.chat.command.command_handler import BaseCommand, register_command, _COMMAND_REGISTRY from typing import Tuple, Optional logger = get_logger("help_command") diff --git a/src/plugins/example_command_plugin/commands/message_info_command.py b/src/plugins/example_command_plugin/commands/message_info_command.py index 54c7e5062..aa30e24f5 100644 --- a/src/plugins/example_command_plugin/commands/message_info_command.py +++ b/src/plugins/example_command_plugin/commands/message_info_command.py @@ -1,5 +1,5 @@ from src.common.logger_manager import get_logger -from src.chat.message_receive.command_handler import BaseCommand, register_command +from src.chat.command.command_handler import BaseCommand, register_command from typing import Tuple, Optional import json diff --git a/src/plugins/example_command_plugin/commands/send_msg_commad.py b/src/plugins/example_command_plugin/commands/send_msg_commad.py index bbc0cc50d..7953eb5af 100644 --- a/src/plugins/example_command_plugin/commands/send_msg_commad.py +++ b/src/plugins/example_command_plugin/commands/send_msg_commad.py @@ -1,5 +1,5 @@ from src.common.logger_manager import get_logger -from src.chat.message_receive.command_handler import BaseCommand, register_command +from src.chat.command.command_handler import BaseCommand, register_command from src.chat.actions.plugin_api.message_api import MessageAPI from typing import Tuple, Optional diff --git a/src/plugins/example_command_plugin/commands/send_msg_enhanced.py b/src/plugins/example_command_plugin/commands/send_msg_enhanced.py index 6b479eb9d..810d4f15d 100644 --- a/src/plugins/example_command_plugin/commands/send_msg_enhanced.py +++ b/src/plugins/example_command_plugin/commands/send_msg_enhanced.py @@ -1,5 +1,5 @@ from src.common.logger_manager import get_logger -from src.chat.message_receive.command_handler import BaseCommand, register_command +from src.chat.command.command_handler import BaseCommand, register_command from src.chat.actions.plugin_api.message_api import MessageAPI from typing import Tuple, Optional diff --git a/src/plugins/example_command_plugin/commands/send_msg_with_context.py b/src/plugins/example_command_plugin/commands/send_msg_with_context.py index 16b54e97b..dd6d8de87 100644 --- a/src/plugins/example_command_plugin/commands/send_msg_with_context.py +++ b/src/plugins/example_command_plugin/commands/send_msg_with_context.py @@ -1,5 +1,5 @@ from src.common.logger_manager import get_logger -from src.chat.message_receive.command_handler import BaseCommand, register_command +from src.chat.command.command_handler import BaseCommand, register_command from src.chat.actions.plugin_api.message_api import MessageAPI from typing import Tuple, Optional import time