From a845977cc4779585f549711562d62507b42b5ab2 Mon Sep 17 00:00:00 2001 From: Bobloy Date: Thu, 17 May 2018 10:42:35 -0400 Subject: [PATCH] Working, prints are weird though --- announcedaily/announcedaily.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/announcedaily/announcedaily.py b/announcedaily/announcedaily.py index a9b3b54..8f19dab 100644 --- a/announcedaily/announcedaily.py +++ b/announcedaily/announcedaily.py @@ -223,9 +223,7 @@ class AnnounceDaily: await channel.send(choice) async def check_day(self): - print("Out of start") while self is self.bot.get_cog("AnnounceDaily"): - print("Start") tomorrow = datetime.now() + timedelta(days=1) time = await self.config.time() h, m, s = time['hour'], time['minute'], time['second'] @@ -236,8 +234,9 @@ class AnnounceDaily: await asyncio.sleep((midnight - datetime.now()).seconds) if self is not self.bot.get_cog("AnnounceDaily"): + print("Announce canceled, cog has been lost") return - print("Pre-announce") + await self.send_announcements() await asyncio.sleep(3)