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)