diff options
| author | 2019-07-10 16:59:09 -0400 | |
|---|---|---|
| committer | 2019-07-10 16:59:09 -0400 | |
| commit | 05793418504eeac85d52df78d51fc15be16c3b1e (patch) | |
| tree | 647717541f2b35d200c72f8609977b1132c3ab29 /bot | |
| parent | Merge pull request #194 from RohanJnr/easter_egg_facts (diff) | |
Add missing channel getter
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/seasons/easter/egg_facts.py | 4 |
1 files changed, 2 insertions, 2 deletions
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") |