We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4518de commit 57af046Copy full SHA for 57af046
src/bot/cogs/cogs_manager.py
@@ -33,6 +33,7 @@ def __init__(self, bot: commands.Bot):
33
34
"""
35
self.bot = bot
36
+ self.cogs = cogs_manager_config.loaded_modules
37
38
async def load_all_cogs(self):
39
@@ -41,7 +42,7 @@ async def load_all_cogs(self):
41
42
Iterates over the configured list of cog modules and attempts to
43
load each one. Logs success or failure to the console.
44
- for cog in cogs_manager_config.loaded_modules:
45
+ for cog in self.cogs:
46
cog = f"bot.cogs.{cog}"
47
try:
48
await self.bot.load_extension(cog)
0 commit comments