Skip to content

Commit 57af046

Browse files
committed
fix: Fix admin module
1 parent f4518de commit 57af046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bot/cogs/cogs_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def __init__(self, bot: commands.Bot):
3333
3434
"""
3535
self.bot = bot
36+
self.cogs = cogs_manager_config.loaded_modules
3637

3738
async def load_all_cogs(self):
3839
"""
@@ -41,7 +42,7 @@ async def load_all_cogs(self):
4142
Iterates over the configured list of cog modules and attempts to
4243
load each one. Logs success or failure to the console.
4344
"""
44-
for cog in cogs_manager_config.loaded_modules:
45+
for cog in self.cogs:
4546
cog = f"bot.cogs.{cog}"
4647
try:
4748
await self.bot.load_extension(cog)

0 commit comments

Comments
 (0)