Merge branch 'master' of np.slipstreamm.dev:discordbot
This commit is contained in:
commit
417d371f6e
12
main.py
12
main.py
@ -130,12 +130,12 @@ class MyBot(commands.Bot):
|
||||
await load_all_cogs(self, skip_cogs=self.ai_cogs_to_skip)
|
||||
log.info(f"Cogs loaded in setup_hook. Skipped: {self.ai_cogs_to_skip or 'None'}")
|
||||
|
||||
# Load the lockdown cog
|
||||
try:
|
||||
await self.load_extension("cogs.lockdown_cog")
|
||||
log.info("Lockdown cog loaded successfully.")
|
||||
except Exception as e:
|
||||
log.exception(f"Failed to load lockdown cog: {e}")
|
||||
|
||||
# Load the lockdown cog separately if needed
|
||||
# Note: load_all_cogs already loads all cogs in the directory. The
|
||||
# manual load below caused the cog to be loaded twice resulting in an
|
||||
# ExtensionAlreadyLoaded error.
|
||||
# await self.load_extension("cogs.lockdown_cog")
|
||||
|
||||
# --- Share GurtCog, ModLogCog, and bot instance with the sync API ---
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user