mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Added additional cogs downloader
This commit is contained in:
6
red.py
6
red.py
@@ -83,7 +83,7 @@ async def send_cmd_help(ctx):
|
||||
async def load(*, module : str):
|
||||
"""Loads a module
|
||||
|
||||
Example: load cogs.mod"""
|
||||
Example: load mod"""
|
||||
module = module.strip()
|
||||
if "cogs." not in module: module = "cogs." + module
|
||||
if not module in list_cogs():
|
||||
@@ -102,7 +102,7 @@ async def load(*, module : str):
|
||||
async def unload(*, module : str):
|
||||
"""Unloads a module
|
||||
|
||||
Example: unload cogs.mod"""
|
||||
Example: unload mod"""
|
||||
module = module.strip()
|
||||
if "cogs." not in module: module = "cogs." + module
|
||||
if not module in list_cogs():
|
||||
@@ -121,7 +121,7 @@ async def unload(*, module : str):
|
||||
async def _reload(*, module : str):
|
||||
"""Reloads a module
|
||||
|
||||
Example: reload cogs.mod"""
|
||||
Example: reload mod"""
|
||||
module = module.strip()
|
||||
if "cogs." not in module: module = "cogs." + module
|
||||
if not module in list_cogs():
|
||||
|
||||
Reference in New Issue
Block a user