From a78ebf2fd7a27e213baed4d39e8ba627e73ece5d Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sun, 14 May 2023 18:20:28 +0800 Subject: [PATCH] feat: plugin dev mode --- model/command/command.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model/command/command.py b/model/command/command.py index 2f73a2f71..57cf353a7 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -186,6 +186,11 @@ class Command: return False, f"插件重载失败。\n跟踪: \n{err}", "plugin" except BaseException as e: return False, f"插件重载失败,原因: {str(e)}", "plugin" + + elif l[1] == "dev": + if role != "admin": + return False, f"你的身份组{role}没有权限开发者模式", "plugin" + return True, "cached_plugins: \n" + str(cached_plugins), "plugin" '''