From ccf880517d4ca2bc4268874cfea8e9880ee62e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Mon, 7 Aug 2023 17:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BF=AE=E6=94=B9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GenshinUID/__init__.py b/GenshinUID/__init__.py index 707034b8..e6c8e1ce 100644 --- a/GenshinUID/__init__.py +++ b/GenshinUID/__init__.py @@ -172,19 +172,19 @@ async def import_gacha_log_info(session: NoticeSession): @sv.on_fullmatch('gs一键安装') async def send_install_msg(bot: HoshinoBot, ev: CQEvent): - if priv.check_priv(ev, priv.ADMIN): + if priv.check_priv(ev, priv.SUPERUSER): await bot.send(ev, '即将开始安装...会持续一段时间, 且期间无法使用Bot!') await bot.send(ev, await install()) @sv.on_fullmatch(('连接core', '链接core')) async def send_connect_msg(bot: HoshinoBot, ev: CQEvent): - if priv.check_priv(ev, priv.ADMIN): + if priv.check_priv(ev, priv.SUPERUSER): await connect() await bot.send(ev, '链接成功!') @sv.on_fullmatch(('启动core')) async def send_start_msg(bot: HoshinoBot, ev: CQEvent): - if priv.check_priv(ev, priv.ADMIN): + if priv.check_priv(ev, priv.SUPERUSER): await bot.send(ev, await start())