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: