mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 02:12:32 -05:00
[Core] Added --no-cogs
Skips initial cog loading
This commit is contained in:
6
red.py
6
red.py
@@ -488,6 +488,12 @@ def load_cogs():
|
||||
"which Red cannot function. Reinstall.")
|
||||
exit(1)
|
||||
|
||||
if settings._no_cogs:
|
||||
logger.debug("Skipping initial cogs loading (--no-cogs)")
|
||||
if not os.path.isfile("data/red/cogs.json"):
|
||||
dataIO.save_json("data/red/cogs.json", {})
|
||||
return
|
||||
|
||||
failed = []
|
||||
extensions = owner_cog._list_cogs()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user