From 05793418504eeac85d52df78d51fc15be16c3b1e Mon Sep 17 00:00:00 2001 From: sco1 Date: Wed, 10 Jul 2019 16:59:09 -0400 Subject: Add missing channel getter --- bot/seasons/easter/egg_facts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot') diff --git a/bot/seasons/easter/egg_facts.py b/bot/seasons/easter/egg_facts.py index 1a19e48f..6155670e 100644 --- a/bot/seasons/easter/egg_facts.py +++ b/bot/seasons/easter/egg_facts.py @@ -35,7 +35,7 @@ class EasterFacts(commands.Cog): async def send_egg_fact_daily(self): """A background task that sends an easter egg fact in the event channel everyday.""" - channel = Channels.seasonalbot_chat + channel = self.bot.get_channel(Channels.seasonalbot_chat) while True: embed = self.make_embed() await channel.send(embed=embed) @@ -58,7 +58,7 @@ class EasterFacts(commands.Cog): def setup(bot): - """Easter Egg facts loaded.""" + """Easter Egg facts cog load.""" bot.loop.create_task(EasterFacts(bot).send_egg_fact_daily()) bot.add_cog(EasterFacts(bot)) log.info("EasterFacts cog loaded") -- cgit v1.2.3