1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-23 22:27:27 +00:00

Increased deletion timeout to 10 mins

This commit is contained in:
Myned 2017-10-17 02:28:44 -04:00
parent a9226660e6
commit 444d7e34c1

View file

@ -77,7 +77,7 @@ class Administration:
history = [message for message in history if message.author.id is user]
est_sent = await ctx.send('⏱ **Estimated time to delete history:** `{}m {}s`'.format(int(self.RATE_LIMIT * len(history) / 60), int(self.RATE_LIMIT * len(history) % 60)))
cont_sent = await ctx.send('{} **Continue?** `Y` or `N`'.format(ctx.author.mention))
await self.bot.wait_for('message', check=yes, timeout=60)
await self.bot.wait_for('message', check=yes, timeout=10 * 60)
await cont_sent.delete()
del_sent = await ctx.send('🗑 **Deleting messages...**')
await del_sent.pin()