From 4506c0a752cc16633b3806cfa48f0fba6e339b8f Mon Sep 17 00:00:00 2001 From: dnns01 <mail@dnns01.de> Date: Sun, 18 Oct 2020 01:23:17 +0200 Subject: [PATCH] Removed debug outputs --- info_cog.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/info_cog.py b/info_cog.py index 6af24d3..cac457f 100644 --- a/info_cog.py +++ b/info_cog.py @@ -24,7 +24,6 @@ class InfoCog: pass async def start_info_loop(self): - print("Starting Loop") asyncio.create_task(self.info_loop()) async def info_loop(self): @@ -32,9 +31,8 @@ class InfoCog: If this is true, reset the pipi counter, as you can assume, that the stream recently started.""" while True: - print(f"Loop started. Sleeping for {self.INFO_LOOP} minutes") await asyncio.sleep(self.INFO_LOOP * 60) - print("Hey.... wake up!") + if await self.bot.stream(): channel = self.bot.channel() message = f"Psssst... wusstest du eigentlich schon, {random.choice(self.info)}" -- GitLab