From f7f38d30cd7c26f9941b77c155ed5876fc2c410a Mon Sep 17 00:00:00 2001 From: Boris Muratov <8bee278@gmail.com> Date: Wed, 10 Mar 2021 20:20:17 +0200 Subject: Make talentpool a package and move cog load to __init__.py --- bot/exts/recruitment/talentpool/__init__.py | 8 ++++++++ bot/exts/recruitment/talentpool/_cog.py | 5 ----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 bot/exts/recruitment/talentpool/__init__.py 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)) -- cgit v1.2.3