From bedeb0e2ced353b5ec5722032c1d5b4647f15593 Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 30 Jul 2020 16:22:59 -0400 Subject: [PATCH] Remove print statements --- infochannel/infochannel.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index 86d0df4..b612830 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -247,9 +247,9 @@ class InfoChannel(Cog): """My attempt at preventing rate limits, lets see how it goes""" if self._critical_section_wooah_: if self._critical_section_wooah_ == 2: - print("Already pending, skipping") + # print("Already pending, skipping") return # Another one is already pending, don't queue more than one - print("Queuing another update") + # print("Queuing another update") self._critical_section_wooah_ = 2 while self._critical_section_wooah_: @@ -257,15 +257,15 @@ class InfoChannel(Cog): RATE_LIMIT_DELAY // 4 ) # Max delay ends up as 1.25 * RATE_LIMIT_DELAY - print("Issuing queued update") + # print("Issuing queued update") return await self.update_infochannel_with_cooldown(guild) - print("Entering critical") + # print("Entering critical") self._critical_section_wooah_ = 1 await self.update_infochannel(guild) await asyncio.sleep(RATE_LIMIT_DELAY) self._critical_section_wooah_ = 0 - print("Exiting critical") + # print("Exiting critical") @Cog.listener() async def on_member_join(self, member: discord.Member):