diff --git a/automod.py b/cogs/automod.py similarity index 100% rename from automod.py rename to cogs/automod.py diff --git a/economy.py b/cogs/economy.py similarity index 100% rename from economy.py rename to cogs/economy.py diff --git a/isobank.py b/cogs/isobank.py similarity index 100% rename from isobank.py rename to cogs/isobank.py diff --git a/levelling.py b/cogs/levelling.py similarity index 100% rename from levelling.py rename to cogs/levelling.py diff --git a/maths.py b/cogs/maths.py similarity index 100% rename from maths.py rename to cogs/maths.py diff --git a/minigames.py b/cogs/minigames.py similarity index 100% rename from minigames.py rename to cogs/minigames.py diff --git a/moderation.py b/cogs/moderation.py similarity index 100% rename from moderation.py rename to cogs/moderation.py diff --git a/reddit.py b/cogs/reddit.py similarity index 100% rename from reddit.py rename to cogs/reddit.py diff --git a/main.py b/main.py index 51760128..1605dffc 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ from discord import ApplicationContext, option from discord.ext import commands from discord.ext.commands import * -from economy import get_wallet, get_bank, new_bank, new_wallet +from cogs.economy import get_wallet, get_bank, new_bank, new_wallet # Slash option types: # Just use variable types to define option types. @@ -435,7 +435,7 @@ async def stats(ctx: ApplicationContext, user: discord.User): for x in active_cogs: print(f"[main/Cogs] Loading isobot Cog ({i}/{len(active_cogs)})") i += 1 - try: client.load_extension(x) + try: client.load_extension(f"cogs.{x}") except Exception as e: cog_errors += 1 print(f"[main/Cogs] {colors.red}ERROR: Cog \"{x}\" failed to load: {e}{colors.end}")