From 1a08d6cb59764be7e35d3a3eb55eed1d62ba82f5 Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Wed, 26 Nov 2025 00:35:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=BB=B6=E8=BF=9F=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E5=99=A8=E5=A4=B1=E8=B4=A5):=20PlatformAdapt?= =?UTF-8?q?er'=20object=20has=20no=20attribute=20'metadata'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/bot_manager.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/bot_manager.py b/src/core/bot_manager.py index 59dcbf9..a82505a 100644 --- a/src/core/bot_manager.py +++ b/src/core/bot_manager.py @@ -87,7 +87,7 @@ class BotManager: return self._default_platform async def auto_discover_bot_instances(self): - """自动发现所有可用的bot实例 (仅限 QQ/Aiocqhttp)""" + """自动发现所有可用的bot实例""" if not self._context or not hasattr(self._context, "platform_manager"): return {} @@ -96,10 +96,6 @@ class BotManager: discovered = {} for platform in platforms: - # 严格过滤:只处理 AiocqhttpAdapter (QQ) - if platform.metadata.name != "aiocqhttp": - continue - # 获取bot实例 bot_client = None if hasattr(platform, "get_client"):