aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-03-10 20:20:17 +0200
committerGravatar Boris Muratov <[email protected]>2021-03-10 20:20:17 +0200
commitf7f38d30cd7c26f9941b77c155ed5876fc2c410a (patch)
tree6cc8aaea090bc045bae08d425fbc1c1afb0fa14c
parentRename talentpool.py to _cog.py (diff)
Make talentpool a package and move cog load to __init__.py
-rw-r--r--bot/exts/recruitment/talentpool/__init__.py8
-rw-r--r--bot/exts/recruitment/talentpool/_cog.py5
2 files changed, 8 insertions, 5 deletions
diff --git a/bot/exts/recruitment/talentpool/__init__.py b/bot/exts/recruitment/talentpool/__init__.py
new file mode 100644
index 000000000..52d27eb99
--- /dev/null
+++ b/bot/exts/recruitment/talentpool/__init__.py
@@ -0,0 +1,8 @@
+from bot.bot import Bot
+
+
+def setup(bot: Bot) -> None:
+ """Load the TalentPool cog."""
+ from bot.exts.recruitment.talentpool._cog import TalentPool
+
+ bot.add_cog(TalentPool(bot))
diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py
index d75688fa6..67513f386 100644
--- a/bot/exts/recruitment/talentpool/_cog.py
+++ b/bot/exts/recruitment/talentpool/_cog.py
@@ -328,8 +328,3 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"):
)
return lines.strip()
-
-
-def setup(bot: Bot) -> None:
- """Load the TalentPool cog."""
- bot.add_cog(TalentPool(bot))