1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 14:47:29 +00:00

Lowered 10 min timeout for paginators to 7 mins

This commit is contained in:
Myned 2017-11-08 23:49:12 -05:00
parent f68115901b
commit 852fe6b5a7

View file

@ -678,8 +678,8 @@ class MsG:
while not self.bot.is_closed(): while not self.bot.is_closed():
try: try:
await asyncio.gather(*[self.bot.wait_for('reaction_add', 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=10 * 60)]) self.bot.wait_for('reaction_remove', check=on_reaction, timeout=7 * 60)])
except exc.Save: except exc.Save:
if values[c - 1]['url'] not in hearted: if values[c - 1]['url'] not in hearted:
@ -706,7 +706,7 @@ class MsG:
except exc.GoTo: except exc.GoTo:
await paginator.edit(content='**Enter image number...**') 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) c = int(number.content)
await number.delete() await number.delete()
@ -819,8 +819,8 @@ class MsG:
while not self.bot.is_closed(): while not self.bot.is_closed():
try: try:
await asyncio.gather(*[self.bot.wait_for('reaction_add', 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=10 * 60)]) self.bot.wait_for('reaction_remove', check=on_reaction, timeout=7 * 60)])
except exc.Save: except exc.Save:
if values[c - 1]['url'] not in hearted: if values[c - 1]['url'] not in hearted:
@ -847,7 +847,7 @@ class MsG:
except exc.GoTo: except exc.GoTo:
await paginator.edit(content='**Enter image number...**') 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) c = int(number.content)
await number.delete() await number.delete()
@ -984,8 +984,8 @@ class MsG:
while not self.bot.is_closed(): while not self.bot.is_closed():
try: try:
await asyncio.gather(*[self.bot.wait_for('reaction_add', 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=10 * 60)]) self.bot.wait_for('reaction_remove', check=on_reaction, timeout=7 * 60)])
except exc.Save: except exc.Save:
if values[c - 1]['url'] not in hearted: if values[c - 1]['url'] not in hearted:
@ -1012,7 +1012,7 @@ class MsG:
except exc.GoTo: except exc.GoTo:
await paginator.edit(content='**Enter image number...**') 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) c = int(number.content)
await number.delete() await number.delete()