From 852fe6b5a76252c629d9fdb578c2b6602428da4e Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 8 Nov 2017 23:49:12 -0500 Subject: [PATCH] Lowered 10 min timeout for paginators to 7 mins --- src/main/cogs/booru.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index 94ce86b..9eb1cf0 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -678,8 +678,8 @@ class MsG: while not self.bot.is_closed(): try: - await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=10 * 60), - self.bot.wait_for('reaction_remove', check=on_reaction, timeout=10 * 60)]) + await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=7 * 60), + self.bot.wait_for('reaction_remove', check=on_reaction, timeout=7 * 60)]) except exc.Save: if values[c - 1]['url'] not in hearted: @@ -706,7 +706,7 @@ class MsG: except exc.GoTo: await paginator.edit(content='**Enter image number...**') - number = await self.bot.wait_for('message', check=on_message, timeout=10 * 60) + number = await self.bot.wait_for('message', check=on_message, timeout=7 * 60) c = int(number.content) await number.delete() @@ -819,8 +819,8 @@ class MsG: while not self.bot.is_closed(): try: - await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=10 * 60), - self.bot.wait_for('reaction_remove', check=on_reaction, timeout=10 * 60)]) + await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=7 * 60), + self.bot.wait_for('reaction_remove', check=on_reaction, timeout=7 * 60)]) except exc.Save: if values[c - 1]['url'] not in hearted: @@ -847,7 +847,7 @@ class MsG: except exc.GoTo: await paginator.edit(content='**Enter image number...**') - number = await self.bot.wait_for('message', check=on_message, timeout=10 * 60) + number = await self.bot.wait_for('message', check=on_message, timeout=7 * 60) c = int(number.content) await number.delete() @@ -984,8 +984,8 @@ class MsG: while not self.bot.is_closed(): try: - await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=10 * 60), - self.bot.wait_for('reaction_remove', check=on_reaction, timeout=10 * 60)]) + await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=7 * 60), + self.bot.wait_for('reaction_remove', check=on_reaction, timeout=7 * 60)]) except exc.Save: if values[c - 1]['url'] not in hearted: @@ -1012,7 +1012,7 @@ class MsG: except exc.GoTo: await paginator.edit(content='**Enter image number...**') - number = await self.bot.wait_for('message', check=on_message, timeout=10 * 60) + number = await self.bot.wait_for('message', check=on_message, timeout=7 * 60) c = int(number.content) await number.delete()