diff --git a/main.py b/main.py index 0c554a5..9bad644 100644 --- a/main.py +++ b/main.py @@ -39,7 +39,7 @@ def main() -> None: # Get the modules of all cogs whose directory structure is ./cogs/ for folder in pathlib.Path("cogs").iterdir(): - bot.load_extension(f"cogs.{folder}") + bot.load_extension(f"cogs.{folder.name}") @bot.listen() async def on_ready() -> None: