aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-07 13:31:34 +0100
committerGravatar kwzrd <[email protected]>2020-03-07 13:31:34 +0100
commitdb69310754e5cb2acbb246167542203836d86356 (patch)
treea27c64e8e03f096d6f1a77caa9521765d766067e /bot/__main__.py
parentDeseasonify: move 'SeasonBase' to seasons package init (diff)
Deseasonify: load all extensions on start-up
Extensions are no longer bound to their respective seasons.
Diffstat (limited to 'bot/__main__.py')
-rw-r--r--bot/__main__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index 654fb053..5ac6b33e 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -3,8 +3,13 @@ import logging
from bot.bot import bot
from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS
from bot.decorators import in_channel_check
+from bot.seasons import get_extensions
log = logging.getLogger(__name__)
bot.add_check(in_channel_check(*WHITELISTED_CHANNELS, bypass_roles=STAFF_ROLES))
+
+for ext in get_extensions():
+ bot.load_extension(ext)
+
bot.run(Client.token)