️ 修改 yourprune 逻辑

This commit is contained in:
xtaodada 2020-04-06 14:13:34 +08:00
parent e37f312de0
commit 3bd162e827
No known key found for this signature in database
GPG Key ID: 39EFACA711DF5D8C

View File

@ -81,6 +81,10 @@ async def yourprune(context):
await message.delete() await message.delete()
count_buffer += 1 count_buffer += 1
await log(f"批量删除了回复用户所发送的 {str(count)} 条消息。") await log(f"批量删除了回复用户所发送的 {str(count)} 条消息。")
try:
await context.delete()
except:
pass
notification = await send_prune_notify(context, count) notification = await send_prune_notify(context, count)
await sleep(.5) await sleep(.5)
await notification.delete() await notification.delete()