mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 12:55:38 +00:00
killallmembers v1.02 修复频繁edit导致的报错
This commit is contained in:
parent
812c83d0eb
commit
3e99688509
@ -35,7 +35,8 @@ async def killallmembers(context):
|
||||
try:
|
||||
await bot.edit_permissions(context.chat_id, user_id, view_messages=False)
|
||||
i += 1
|
||||
await context.edit(f'进度:{i}/{len(users_wo_admins)}')
|
||||
if i % 10 == 0:
|
||||
await context.edit(f'进度:{i}/{len(users_wo_admins)}')
|
||||
except:
|
||||
await context.edit('发生错误')
|
||||
await sleep(10)
|
||||
|
Loading…
Reference in New Issue
Block a user