mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update __init__.py
This commit is contained in:
parent
d2b0ebc218
commit
474976cd3c
@ -32,7 +32,10 @@ async def _(matcher: Matcher, bot: Bot, event: GroupMessageEvent, state: T_State
|
||||
group_data[str(event.group_id)] = 5
|
||||
if plugins2level_dict.get(matcher.module):
|
||||
if plugins2level_dict[matcher.module] > group_data[str(event.group_id)]:
|
||||
await bot.send_group_msg(group_id=event.group_id, message='群权限不足...')
|
||||
try:
|
||||
await bot.send_group_msg(group_id=event.group_id, message='群权限不足...')
|
||||
except:
|
||||
pass
|
||||
raise IgnoredException('群权限不足')
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user