Added additional cogs downloader

This commit is contained in:
Twentysix
2016-03-06 20:34:16 +01:00
parent 9fee6dcc05
commit 50444388c7
2 changed files with 150 additions and 3 deletions

6
red.py
View File

@@ -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():