From ea3204d890a71692e90ab60cf375b29ef50d6c86 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Mon, 17 Mar 2025 18:21:19 -0400 Subject: [PATCH] Fix cog loading. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: