diff options
author | 2020-03-28 15:41:26 +0100 | |
---|---|---|
committer | 2020-03-28 15:46:49 +0100 | |
commit | b82d104130f6859bee620505b3ac04c3c0680600 (patch) | |
tree | f16bd86e898885aed90c3a0bb618b08802b70aa9 /bot/__main__.py | |
parent | Deseasonify: make `get_package_names` an iterator (diff) |
Deseasonify: make `get_extensions` an iterator
Simplify internal structure & adjust var naming.
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index 9a981c5c..8b6ee782 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -2,14 +2,14 @@ import logging from bot.bot import bot from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS -from bot.exts import get_extensions +from bot.exts import walk_extensions from bot.utils.decorators import in_channel_check log = logging.getLogger(__name__) bot.add_check(in_channel_check(*WHITELISTED_CHANNELS, bypass_roles=STAFF_ROLES)) -for ext in get_extensions(): +for ext in walk_extensions(): bot.load_extension(ext) bot.run(Client.token) |