From b7392ffea353474685e5c6c3d0e474364380f3eb Mon Sep 17 00:00:00 2001 From: tt-P607 <68868379+tt-P607@users.noreply.github.com> Date: Sat, 11 Oct 2025 23:35:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(napcat):=20=E5=B0=86=20MoFox-Bot=20?= =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E4=B8=BA=20MaiBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 NapCat 适配器插件中,将 `mofox_bot` 相关的变量和函数名重命名为 `maibot`,以保持项目内部命名的一致性。这是在之前从 MaiBot 重命名为 MoFox-Bot 后的修正操作。 --- src/plugins/built_in/napcat_adapter_plugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/built_in/napcat_adapter_plugin/plugin.py b/src/plugins/built_in/napcat_adapter_plugin/plugin.py index 88afc4e26..1a202153d 100644 --- a/src/plugins/built_in/napcat_adapter_plugin/plugin.py +++ b/src/plugins/built_in/napcat_adapter_plugin/plugin.py @@ -234,7 +234,7 @@ class LauchNapcatAdapterHandler(BaseEventHandler): asyncio.create_task(message_process()) asyncio.create_task(check_timeout_response()) - async def _start_mofox_bot_connection(self): + async def _start_maibot_connection(self): """非阻塞方式启动MoFox-Bot连接,等待主服务启动后再连接""" # 等待一段时间让MoFox-Bot主服务完全启动 await asyncio.sleep(5) @@ -246,7 +246,7 @@ class LauchNapcatAdapterHandler(BaseEventHandler): try: logger.info(f"尝试连接MoFox-Bot (第{attempt + 1}次)") await mmc_start_com(self.plugin_config) - message_send_instance.mofox_bot_router = router + message_send_instance.maibot_router = router logger.info("MoFox-Bot router连接已建立") return except Exception as e: