diff options
| author | 2020-02-23 12:23:25 -0800 | |
|---|---|---|
| committer | 2020-02-23 12:38:02 -0800 | |
| commit | b387b2ec3201a33a0f2ba46a032477b126479671 (patch) | |
| tree | ae39b504c21dcdba9793b1be9fde7b0f44ebc19f | |
| parent | Config: rename channels to match their names in the guild (diff) | |
Always load doc and verification extensions
They used to only be loaded in "debug mode" because the main guild was
used to test the bot. However, we have since moved to using a separate
test guild so it's no longer a concern if these cogs get loaded.
It was confusing to some contributors as to why these cogs were not
being loaded since the debug mode isn't really documented anywhere.
| -rw-r--r-- | bot/__main__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index 490163739..0079a9381 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -7,7 +7,7 @@ from sentry_sdk.integrations.logging import LoggingIntegration from bot import patches from bot.bot import Bot -from bot.constants import Bot as BotConfig, DEBUG_MODE +from bot.constants import Bot as BotConfig sentry_logging = LoggingIntegration( level=logging.TRACE, @@ -40,10 +40,8 @@ bot.load_extension("bot.cogs.clean") bot.load_extension("bot.cogs.extensions") bot.load_extension("bot.cogs.help") -# Only load this in production -if not DEBUG_MODE: - bot.load_extension("bot.cogs.doc") - bot.load_extension("bot.cogs.verification") +bot.load_extension("bot.cogs.doc") +bot.load_extension("bot.cogs.verification") # Feature cogs bot.load_extension("bot.cogs.alias") |