diff --git a/src/chat/message_receive/bot.py b/src/chat/message_receive/bot.py index ffe7b8ae..b7a292c4 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 a2750c80..f7df8ee1 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 4169c10d..932cc062 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 f1b3cd35..f2b44071 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 54c7e506..aa30e24f 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 bbc0cc50..7953eb5a 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 6b479eb9..810d4f15 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 16b54e97..dd6d8de8 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