添加插件管理功能,显示插件的相关信息。

This commit is contained in:
liuwei
2025-04-11 13:48:43 +08:00
parent 9a4f807f59
commit 4ccbe08332
4 changed files with 365 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ class PermissionStatus(Enum):
DISABLED = "disabled"
# 在Feature枚举类中添加新的功能权限
class Feature(Enum):
"""功能权限枚举,带序号"""
ROBOT = 1, "群机器人"
@@ -42,6 +43,7 @@ class Feature(Enum):
GROUP_ADD = 16, "加群提醒功能"
DOUYIN_PARSER = 17, "抖音链接转视频功能"
GROUP_MEMBER_CHANGE = 18, "群成员变更提醒功能"
KID_PHOTO_EXTRACT =19, "儿童照片提取转发功能" # 小朋友照片提取功能
def __new__(cls, value, description):
obj = object.__new__(cls)