diff options
Diffstat (limited to 'bot/exts/holidays/pride')
| -rw-r--r-- | bot/exts/holidays/pride/drag_queen_name.py | 4 | ||||
| -rw-r--r-- | bot/exts/holidays/pride/pride_anthem.py | 4 | ||||
| -rw-r--r-- | bot/exts/holidays/pride/pride_facts.py | 6 | ||||
| -rw-r--r-- | bot/exts/holidays/pride/pride_leader.py | 4 |
4 files changed, 8 insertions, 10 deletions
diff --git a/bot/exts/holidays/pride/drag_queen_name.py b/bot/exts/holidays/pride/drag_queen_name.py index bd01a603..0c1ca6fb 100644 --- a/bot/exts/holidays/pride/drag_queen_name.py +++ b/bot/exts/holidays/pride/drag_queen_name.py @@ -21,6 +21,6 @@ class DragNames(commands.Cog): await ctx.send(random.choice(NAMES)) -def setup(bot: Bot) -> None: +async def setup(bot: Bot) -> None: """Load the Drag Names Cog.""" - bot.add_cog(DragNames()) + await bot.add_cog(DragNames()) diff --git a/bot/exts/holidays/pride/pride_anthem.py b/bot/exts/holidays/pride/pride_anthem.py index e8a4563b..6b78cba1 100644 --- a/bot/exts/holidays/pride/pride_anthem.py +++ b/bot/exts/holidays/pride/pride_anthem.py @@ -46,6 +46,6 @@ class PrideAnthem(commands.Cog): await ctx.send("I couldn't find a video, sorry!") -def setup(bot: Bot) -> None: +async def setup(bot: Bot) -> None: """Load the Pride Anthem Cog.""" - bot.add_cog(PrideAnthem()) + await bot.add_cog(PrideAnthem()) diff --git a/bot/exts/holidays/pride/pride_facts.py b/bot/exts/holidays/pride/pride_facts.py index 340f0b43..36a9415e 100644 --- a/bot/exts/holidays/pride/pride_facts.py +++ b/bot/exts/holidays/pride/pride_facts.py @@ -28,8 +28,6 @@ class PrideFacts(commands.Cog): @seasonal_task(Month.JUNE) async def send_pride_fact_daily(self) -> None: """Background task to post the daily pride fact every day.""" - await self.bot.wait_until_guild_available() - channel = self.bot.get_channel(Channels.sir_lancebot_playground) await self.send_select_fact(channel, datetime.utcnow()) @@ -94,6 +92,6 @@ class PrideFacts(commands.Cog): ) -def setup(bot: Bot) -> None: +async def setup(bot: Bot) -> None: """Load the Pride Facts Cog.""" - bot.add_cog(PrideFacts(bot)) + await bot.add_cog(PrideFacts(bot)) diff --git a/bot/exts/holidays/pride/pride_leader.py b/bot/exts/holidays/pride/pride_leader.py index adf01134..120e9e16 100644 --- a/bot/exts/holidays/pride/pride_leader.py +++ b/bot/exts/holidays/pride/pride_leader.py @@ -112,6 +112,6 @@ class PrideLeader(commands.Cog): await ctx.send(embed=embed) -def setup(bot: Bot) -> None: +async def setup(bot: Bot) -> None: """Load the Pride Leader Cog.""" - bot.add_cog(PrideLeader(bot)) + await bot.add_cog(PrideLeader(bot)) |