From a1f8fd78cb072308b9f7450eeb77c05ed51dfb78 Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 27 Jul 2020 12:23:27 -0400 Subject: [PATCH] Black formatting as well --- infochannel/infochannel.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index 7c7c67b..86d0df4 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -50,9 +50,9 @@ class InfoChannel(Cog): def check(m): return ( - m.content.upper() in ["Y", "YES", "N", "NO"] - and m.channel == ctx.channel - and m.author == ctx.author + m.content.upper() in ["Y", "YES", "N", "NO"] + and m.channel == ctx.channel + and m.author == ctx.author ) guild: discord.Guild = ctx.guild @@ -253,7 +253,9 @@ class InfoChannel(Cog): self._critical_section_wooah_ = 2 while self._critical_section_wooah_: - await asyncio.sleep(RATE_LIMIT_DELAY // 4) # Max delay ends up as 1.25 * RATE_LIMIT_DELAY + await asyncio.sleep( + RATE_LIMIT_DELAY // 4 + ) # Max delay ends up as 1.25 * RATE_LIMIT_DELAY print("Issuing queued update") return await self.update_infochannel_with_cooldown(guild)