From faf1e888d566a5ae6fb0fef14088a548d075aad7 Mon Sep 17 00:00:00 2001 From: Florian SYLVAIN Date: Tue, 9 Mar 2021 19:36:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=20-=20All=20extensions=20files=20m?= =?UTF-8?q?oved=20to=20a=20new=20folder=20"ext"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/{ => ext}/cmd_lol.py | 0 python/{ => ext}/cmd_osu.py | 0 python/{ => ext}/cmd_other.py | 0 python/{ => ext}/cmd_twitch.py | 0 python/main.py | 3 ++- 5 files changed, 2 insertions(+), 1 deletion(-) rename python/{ => ext}/cmd_lol.py (100%) rename python/{ => ext}/cmd_osu.py (100%) rename python/{ => ext}/cmd_other.py (100%) rename python/{ => ext}/cmd_twitch.py (100%) diff --git a/python/cmd_lol.py b/python/ext/cmd_lol.py similarity index 100% rename from python/cmd_lol.py rename to python/ext/cmd_lol.py diff --git a/python/cmd_osu.py b/python/ext/cmd_osu.py similarity index 100% rename from python/cmd_osu.py rename to python/ext/cmd_osu.py diff --git a/python/cmd_other.py b/python/ext/cmd_other.py similarity index 100% rename from python/cmd_other.py rename to python/ext/cmd_other.py diff --git a/python/cmd_twitch.py b/python/ext/cmd_twitch.py similarity index 100% rename from python/cmd_twitch.py rename to python/ext/cmd_twitch.py diff --git a/python/main.py b/python/main.py index 7b17123..af21746 100644 --- a/python/main.py +++ b/python/main.py @@ -38,8 +38,9 @@ async def unloadext(ctx, extension): bot.unload_extension(extension) await ctx.send("Extension unloaded.") + if __name__ == "__main__": for extension in startup_extensions: - bot.load_extension(extension) + bot.load_extension('ext.' + extension) print('Extension "' + str(extension) + '" loaded.') bot.run(TOKEN_BOT)