更新作者信息

This commit is contained in:
雅诺狐
2025-08-25 21:53:06 +08:00
parent a3adbc4fb3
commit bfabf896b5
10 changed files with 27 additions and 45 deletions

View File

@@ -1,28 +1,22 @@
{
"manifest_version": 1,
"name": "插件和组件管理 (Plugin and Component Management)",
"name": "权限管理插件Permission Management",
"version": "1.0.0",
"description": "通过系统API管理插件和组件的生命周期,包括加载、卸载、启用和禁用等操作。",
"description": "通过系统API管理权限",
"author": {
"name": "MaiBot团队",
"url": "https://github.com/MaiM-with-u"
"name": "MoFox-Studio",
"url": "https://github.com/MoFox-Studio"
},
"license": "GPL-v3.0-or-later",
"host_application": {
"min_version": "0.9.1"
"min_version": "0.10.0"
},
"homepage_url": "https://github.com/MaiM-with-u/maibot",
"repository_url": "https://github.com/MaiM-with-u/maibot",
"keywords": [
"plugins",
"components",
"permission",
"management",
"built-in"
],
"categories": [
"Core System",
"Plugin Management"
],
"default_locale": "zh-CN",
"locales_path": "_locales",
"plugin_info": {

View File

@@ -24,11 +24,12 @@ class PermissionCommand(BaseCommand):
command_name = "permission"
command_description = "权限管理命令"
command_pattern = r"^/permission"
command_pattern = r"^/permission(?:\s|$)"
command_help = "/permission <子命令> [参数...]"
intercept_message = True
def __init__(self):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# 注册权限节点
permission_api.register_permission_node(
"plugin.permission.manage",