aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/holidays/pride
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-08-23 21:38:49 +0100
committerGravatar Chris Lovering <[email protected]>2022-09-21 23:02:56 +0100
commit2993a3e13bf1eb939bf4ac451ffe19b64a30709a (patch)
tree4b76184d5e7d38132f8a80fbbc859c5c738dc65e /bot/exts/holidays/pride
parentUpdate redis init due to new redis-py upgrade (diff)
Support discord.py's new async cog loading
Diffstat (limited to 'bot/exts/holidays/pride')
-rw-r--r--bot/exts/holidays/pride/drag_queen_name.py4
-rw-r--r--bot/exts/holidays/pride/pride_anthem.py4
-rw-r--r--bot/exts/holidays/pride/pride_facts.py4
-rw-r--r--bot/exts/holidays/pride/pride_leader.py4
4 files changed, 8 insertions, 8 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..ae025ae7 100644
--- a/bot/exts/holidays/pride/pride_facts.py
+++ b/bot/exts/holidays/pride/pride_facts.py
@@ -94,6 +94,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))