mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-09 19:02:32 -05:00
cogs. prefix no longer needed when loading
This commit is contained in:
3
red.py
3
red.py
@@ -85,6 +85,7 @@ async def load(*, module : str):
|
|||||||
|
|
||||||
Example: load cogs.mod"""
|
Example: load cogs.mod"""
|
||||||
module = module.strip()
|
module = module.strip()
|
||||||
|
if "cogs." not in module: module = "cogs." + module
|
||||||
if not module in list_cogs():
|
if not module in list_cogs():
|
||||||
await bot.say("That module doesn't exist.")
|
await bot.say("That module doesn't exist.")
|
||||||
return
|
return
|
||||||
@@ -103,6 +104,7 @@ async def unload(*, module : str):
|
|||||||
|
|
||||||
Example: unload cogs.mod"""
|
Example: unload cogs.mod"""
|
||||||
module = module.strip()
|
module = module.strip()
|
||||||
|
if "cogs." not in module: module = "cogs." + module
|
||||||
if not module in list_cogs():
|
if not module in list_cogs():
|
||||||
await bot.say("That module doesn't exist.")
|
await bot.say("That module doesn't exist.")
|
||||||
return
|
return
|
||||||
@@ -121,6 +123,7 @@ async def _reload(*, module : str):
|
|||||||
|
|
||||||
Example: reload cogs.mod"""
|
Example: reload cogs.mod"""
|
||||||
module = module.strip()
|
module = module.strip()
|
||||||
|
if "cogs." not in module: module = "cogs." + module
|
||||||
if not module in list_cogs():
|
if not module in list_cogs():
|
||||||
await bot.say("That module doesn't exist.")
|
await bot.say("That module doesn't exist.")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user