From 5d57ef300f3f43c1f9dec87921b4619416ddf100 Mon Sep 17 00:00:00 2001 From: Dylan Dizon Date: Thu, 15 Nov 2018 15:45:01 -0500 Subject: [PATCH] Change syntax preference --- src/cogs/booru.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cogs/booru.py b/src/cogs/booru.py index 6a378e2..cc743f9 100644 --- a/src/cogs/booru.py +++ b/src/cogs/booru.py @@ -777,8 +777,8 @@ class MsG: while not self.bot.is_closed(): try: - await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=8 * 60), - self.bot.wait_for('reaction_remove', check=on_reaction, timeout=8 * 60)]) + await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=8*60), + self.bot.wait_for('reaction_remove', check=on_reaction, timeout=8*60)]) except exc.Save: if keys[c - 1] not in hearted: @@ -806,7 +806,7 @@ class MsG: except exc.GoTo: await paginator.edit(content='\N{INPUT SYMBOL FOR NUMBERS}') - number = await self.bot.wait_for('message', check=on_message, timeout=8 * 60) + number = await self.bot.wait_for('message', check=on_message, timeout=8*60) if int(number.content) != 0: c = int(number.content) @@ -917,8 +917,8 @@ class MsG: while not self.bot.is_closed(): try: - await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=8 * 60), - self.bot.wait_for('reaction_remove', check=on_reaction, timeout=8 * 60)]) + await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=8*60), + self.bot.wait_for('reaction_remove', check=on_reaction, timeout=8*60)]) except exc.Save: if keys[c - 1] not in hearted.keys(): @@ -946,7 +946,7 @@ class MsG: except exc.GoTo: await paginator.edit(content=f'`{c} / {len(posts)}`') - number = await self.bot.wait_for('message', check=on_message, timeout=8 * 60) + number = await self.bot.wait_for('message', check=on_message, timeout=8*60) if int(number.content) != 0: c = int(number.content) @@ -1081,8 +1081,8 @@ class MsG: while not self.bot.is_closed(): try: - await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=8 * 60), - self.bot.wait_for('reaction_remove', check=on_reaction, timeout=8 * 60)]) + await asyncio.gather(*[self.bot.wait_for('reaction_add', check=on_reaction, timeout=8*60), + self.bot.wait_for('reaction_remove', check=on_reaction, timeout=8*60)]) except exc.Save: if keys[c - 1] not in hearted: @@ -1110,7 +1110,7 @@ class MsG: except exc.GoTo: await paginator.edit(content=f'`{c} / {len(posts)}`') - number = await self.bot.wait_for('message', check=on_message, timeout=8 * 60) + number = await self.bot.wait_for('message', check=on_message, timeout=8*60) if int(number.content) != 0: c = int(number.content)