From cd54036ab73d8685c48cd63ed5ff4a3850d2db6f Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Thu, 13 Nov 2025 15:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreRouters/callback.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CoreRouters/callback.py b/CoreRouters/callback.py index 7364969..8f2a47c 100644 --- a/CoreRouters/callback.py +++ b/CoreRouters/callback.py @@ -116,6 +116,9 @@ async def handle_command(command: str, message: str, if plugin: logger.Log("Info", f"已找到插件注册指令: {command}, class: {plugin.__class__.__name__}") return await plugin.callback(message, chat_id, user_id) + elif "default" in PluginInterface.plugin_instances: + logger.Log("Info", f"未找到插件注册指令: {command}, 使用默认插件: {PluginInterface.plugin_instances["default"].__class__.__name__}") + return await PluginInterface.plugin_instances["default"].callback(message, chat_id, user_id) else: return f"❌ 未识别指令: {command}" except Exception as e: