From 9824af47615929d0f765a7f4dcbb57b3e8049822 Mon Sep 17 00:00:00 2001 From: freaky Date: Mon, 7 Nov 2022 22:51:54 +0100 Subject: [PATCH] Tested and enhanced scanext(). Should be working. --- pybot-f.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pybot-f.py b/pybot-f.py index 32f89f7..3a6ac9b 100644 --- a/pybot-f.py +++ b/pybot-f.py @@ -79,9 +79,12 @@ async def sync(ctx: commands.Context, guilds: commands.Greedy[discord.Object], # loading extensions ... # TODO: Test this. async def scanext(): + print("Loading extensions:") for filename in os.listdir("./ext"): if filename.endswith(".py"): await bot.load_extension(f"ext.{filename[:-3]}") + print(f'Loaded: {filename}') + print('\n') async def main():