From 73f3e25e7dbb56b6e210748d004404649822697f Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Mon, 15 Sep 2025 23:40:49 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20(bot=5Fmanager)=20=E5=87=BD=E6=95=B0=20?= =?UTF-8?q?initialize=5Ffrom=5Fconfig=20=E6=97=A0=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/bot_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/bot_manager.py b/src/core/bot_manager.py index af193d5..e880f51 100644 --- a/src/core/bot_manager.py +++ b/src/core/bot_manager.py @@ -81,6 +81,9 @@ class BotManager: # 自动发现bot实例 await self.auto_discover_bot_instance() self._is_initialized = True + + # 返回是否成功初始化(至少有bot实例) + return self.has_bot_instance() def get_status_info(self) -> Dict[str, Any]: """获取bot管理器状态信息"""