aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar Eivind Teig <[email protected]>2020-04-02 14:39:24 +0200
committerGravatar GitHub <[email protected]>2020-04-02 14:39:24 +0200
commitd77a2bbc50305d05371197f4cfe3354cfca4c627 (patch)
treebe1eed54972d9843f66114311f93b68b579046ac /bot/__main__.py
parentMerge pull request #382 from ks129/game-fuzzy (diff)
parentMerge master: adjust `Space` cog location (diff)
Merge pull request #329 from python-discord/seasonal-purge
Deseasonify: Make all cogs available year-round, and manage only branding by season.
Diffstat (limited to 'bot/__main__.py')
-rw-r--r--bot/__main__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index 2e68a9a4..0ffd6143 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -5,7 +5,8 @@ from sentry_sdk.integrations.logging import LoggingIntegration
from bot.bot import bot
from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS
-from bot.decorators import in_channel_check
+from bot.exts import walk_extensions
+from bot.utils.decorators import in_channel_check
sentry_logging = LoggingIntegration(
level=logging.DEBUG,
@@ -20,6 +21,8 @@ sentry_sdk.init(
log = logging.getLogger(__name__)
bot.add_check(in_channel_check(*WHITELISTED_CHANNELS, bypass_roles=STAFF_ROLES))
-bot.load_extension("bot.help")
-bot.load_extension("bot.seasons")
+
+for ext in walk_extensions():
+ bot.load_extension(ext)
+
bot.run(Client.token)