diff options
author | 2022-11-26 13:28:32 +0000 | |
---|---|---|
committer | 2022-11-26 13:43:25 +0000 | |
commit | 7d33a854403bc8269403056458058537b51d2c47 (patch) | |
tree | 2c059779826e148479f4183dda1701a44f1a6ed7 | |
parent | Consistantly refer to help posts as posts, not threads (diff) |
Don't load the help channel cog if disabled
-rw-r--r-- | bot/exts/help_channels/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/exts/help_channels/__init__.py b/bot/exts/help_channels/__init__.py index 00b4a735b..643497b9f 100644 --- a/bot/exts/help_channels/__init__.py +++ b/bot/exts/help_channels/__init__.py @@ -1,8 +1,15 @@ from bot.bot import Bot +from bot.constants import HelpChannels from bot.exts.help_channels._cog import HelpForum +from bot.log import get_logger + +log = get_logger(__name__) async def setup(bot: Bot) -> None: """Load the HelpForum cog.""" + if not HelpChannels.enable: + log.warning("HelpChannel.enabled set to false, not loading help channel cog.") + return await bot.add_cog(HelpForum(bot)) |