Merge pull request #131 from Pentacene/master

killallmembers v1.03 更新了更新带来的bug
This commit is contained in:
Pentacene 2021-03-06 21:38:29 +08:00 committed by GitHub
commit 611134afe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,8 @@ async def killallmembers(context):
if i == len(users_wo_admins):
await context.edit(f'完成!\n进度:{i}/{len(users_wo_admins)}')
elif (i < 10) or (i % 10 == 0):
await context.edit(f'进度:{i}/{len(users_wo_admins)}\n{'percent: {:.0f}%'.format(i/len(users_wo_admins))')
await context.edit(f'进度:{i}/{len(users_wo_admins)}'
"{'percent: {:.0f}%'.format(i/len(users_wo_admins))")
except:
await context.edit('发生错误')
await sleep(10)

View File

@ -292,7 +292,7 @@
},
{
"name": "killallmembers",
"version": "1.02",
"version": "1.03",
"section": "chat",
"maintainer": "Pentacene",
"size": "idk",