Compare commits

...

2 Commits

Author SHA1 Message Date
89de330e2d 修复默认入口忽略command参数的错误 2025-11-13 17:11:20 +08:00
cd54036ab7 新增默认入口 2025-11-13 15:44:30 +08:00

View File

@@ -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(command+" "+message, chat_id, user_id)
else:
return f"❌ 未识别指令: {command}"
except Exception as e: