mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update set_admin_permissions.py
This commit is contained in:
parent
cb6549c297
commit
c4d9523ec2
@ -59,6 +59,9 @@ async def _(bot: Bot, event: GroupMessageEvent, state: T_State):
|
||||
at_sender=True,
|
||||
)
|
||||
else:
|
||||
if not is_number(args[0]):
|
||||
await super_cmd.finish("所有参数必须是数字!", at_sender=True)
|
||||
level = int(args[0])
|
||||
qq = qq[0]
|
||||
group_id = event.group_id
|
||||
flag = 2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user