改成默认关闭防止乱七八糟
This commit is contained in:
@@ -422,13 +422,13 @@ class ManagementCommand(BaseCommand):
|
|||||||
@register_plugin
|
@register_plugin
|
||||||
class PluginManagementPlugin(BasePlugin):
|
class PluginManagementPlugin(BasePlugin):
|
||||||
plugin_name: str = "plugin_management_plugin"
|
plugin_name: str = "plugin_management_plugin"
|
||||||
enable_plugin: bool = True
|
enable_plugin: bool = False
|
||||||
dependencies: list[str] = []
|
dependencies: list[str] = []
|
||||||
python_dependencies: list[str] = []
|
python_dependencies: list[str] = []
|
||||||
config_file_name: str = "config.toml"
|
config_file_name: str = "config.toml"
|
||||||
config_schema: dict = {
|
config_schema: dict = {
|
||||||
"plugin": {
|
"plugin": {
|
||||||
"enable": ConfigField(bool, default=True, description="是否启用插件"),
|
"enable": ConfigField(bool, default=False, description="是否启用插件"),
|
||||||
"permission": ConfigField(list, default=[], description="有权限使用插件管理命令的用户列表"),
|
"permission": ConfigField(list, default=[], description="有权限使用插件管理命令的用户列表"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user