mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-01-20 07:03:00 -05:00
Add --cog-path CLI argument (#6510)
This commit is contained in:
@@ -1240,6 +1240,15 @@ class Red(
|
||||
)
|
||||
)
|
||||
|
||||
if self._cli_flags.cog_path:
|
||||
for path in self._cli_flags.cog_path:
|
||||
path = Path(path)
|
||||
try:
|
||||
await self._cog_mgr.add_path(path, persist=False)
|
||||
log.info("Added cog path: %s", path)
|
||||
except Exception:
|
||||
log.exception("Failed to add cog path: %s", path)
|
||||
|
||||
if packages:
|
||||
# Load permissions first, for security reasons
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user