From b82d104130f6859bee620505b3ac04c3c0680600 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Sat, 28 Mar 2020 15:41:26 +0100 Subject: Deseasonify: make `get_extensions` an iterator Simplify internal structure & adjust var naming. --- bot/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/__main__.py') 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) -- cgit v1.2.3