Fix cog loading.

This commit is contained in:
2025-03-17 18:21:19 -04:00
parent e4881a74d4
commit ea3204d890
+1 -1
View File
@@ -39,7 +39,7 @@ def main() -> None:
# Get the modules of all cogs whose directory structure is ./cogs/<module_name> # Get the modules of all cogs whose directory structure is ./cogs/<module_name>
for folder in pathlib.Path("cogs").iterdir(): for folder in pathlib.Path("cogs").iterdir():
bot.load_extension(f"cogs.{folder}") bot.load_extension(f"cogs.{folder.name}")
@bot.listen() @bot.listen()
async def on_ready() -> None: async def on_ready() -> None: