diff options
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 9 |
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) |