From 8f46cffa4417f136d96283bd26d1c9902e4f28d6 Mon Sep 17 00:00:00 2001 From: hibiki <775757368@qq.com> Date: Wed, 11 Aug 2021 11:06:17 +0800 Subject: [PATCH] fix rule --- bot.py | 1 + configs/config.py | 5 ++++- update_info.json | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 4b2d35a1..f33e7cf6 100644 --- a/bot.py +++ b/bot.py @@ -14,6 +14,7 @@ nonebot.load_plugins("plugins/shop") nonebot.load_plugins("plugins/genshin") nonebot.load_plugins("plugins/alapi") nonebot.load_plugins("plugins/pix_gallery") +nonebot.load_plugins("plugins/admin_bot_manage") if __name__ == "__main__": diff --git a/configs/config.py b/configs/config.py index b898846b..bbb7b29d 100644 --- a/configs/config.py +++ b/configs/config.py @@ -115,7 +115,10 @@ AUTO_UPDATE_ZHENXUN: bool = True # 群管理员功能 与 对应权限 admin_plugins_auth = { - "admin_bot_manage": OC_LEVEL, + "custom_welcome_message": OC_LEVEL, + "group_notification_state": OC_LEVEL, + "switch_rule": OC_LEVEL, + "update_group_member_info": OC_LEVEL, "ban": BAN_LEVEL, "delete_img": DELETE_IMG_LEVEL, "move_img": MOVE_IMG_LEVEL, diff --git a/update_info.json b/update_info.json index 65c3bc45..064dc405 100644 --- a/update_info.json +++ b/update_info.json @@ -11,8 +11,9 @@ "plugins/search_buff_skin_price", "plugins/super_help", "plugins/update_setu", - "plugins/yiqing" + "plugins/yiqing", + "bot.py" ], "add_file": ["plugins/nbnhhsh.py", "plugins/roll.py"], "delete_file": [] -} \ No newline at end of file +}