refactor(napcat): 将 MoFox-Bot 重命名为 MaiBot

在 NapCat 适配器插件中,将 `mofox_bot` 相关的变量和函数名重命名为 `maibot`,以保持项目内部命名的一致性。这是在之前从 MaiBot 重命名为 MoFox-Bot 后的修正操作。
This commit is contained in:
tt-P607
2025-10-11 23:35:55 +08:00
committed by Windpicker-owo
parent 6f1ed7f0ec
commit b7392ffea3

View File

@@ -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: