修复管理员插件加载路径错误

This commit is contained in:
HibiKier 2022-11-24 19:16:04 +08:00
parent d97542a3fd
commit 75369411b3
3 changed files with 8 additions and 2 deletions

View File

@ -296,6 +296,12 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
## 更新
### 2022/11/24
* 修复管理员插件加载路径错误
### 2022/11/23
* 修复webui插件无法获取修改
### 2022/11/22

View File

@ -29,4 +29,4 @@ Config.add_plugin_config(
default_value=5
)
nonebot.load_plugins(str((Path(__file__).parent / "admin_bot_manage").resolve()))
nonebot.load_plugins(str(Path(__file__).parent.resolve()))

View File

@ -74,7 +74,7 @@ class PluginSetting(BaseModel):
插件设置
"""
cmd: List[str] = [] # 命令 或 命令别名
cmd: Optional[List[str]] = [] # 命令 或 命令别名
default_status: bool = True # 默认开关状态
level: int = 5 # 功能权限等级
limit_superuser: bool = False # 功能状态是否限制超级用户