From ba506695cc95130ac57e1069dce0528756a6bd2a Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 22 Oct 2018 09:05:41 -0400 Subject: [PATCH] Typo and While True --- announcedaily/announcedaily.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/announcedaily/announcedaily.py b/announcedaily/announcedaily.py index 4c1b029..26d3f60 100644 --- a/announcedaily/announcedaily.py +++ b/announcedaily/announcedaily.py @@ -140,7 +140,7 @@ class AnnounceDaily(Cog): @_ad.command() async def listimg(self, ctx: commands.Context): """ - List all registered announcement immages + List all registered announcement images """ images = await self.config.images() for page in pagify("\n".join(images)): @@ -192,7 +192,7 @@ class AnnounceDaily(Cog): await self.config.time.set({"hour": h, "minute": m, "second": s}) await ctx.send( - "Announcements time has been set to {}::{}::{} every day\n" + "Announcement time has been set to {}::{}::{} every day\n" "**Changes will apply after next scheduled announcement or reload**".format(h, m, s) ) @@ -229,7 +229,7 @@ class AnnounceDaily(Cog): await channel.send(choice) async def check_day(self): - while self is self.bot.get_cog("AnnounceDaily"): + while True: tomorrow = datetime.now() + timedelta(days=1) time = await self.config.time() h, m, s = time["hour"], time["minute"], time["second"]