[Downloader] [p]findcog: Find a cog from a command (#855)

This commit is contained in:
Will
2017-07-12 17:41:22 -04:00
committed by Twentysix
parent 150de9ed6f
commit d8710f0c7d
2 changed files with 73 additions and 1 deletions

View File

@@ -55,6 +55,10 @@ class Core:
@checks.is_owner()
async def _reload(self, ctx, *, cog_name: str):
"""Reloads a package"""
if cog_name == "downloader":
await ctx.send("DONT RELOAD DOWNLOADER.")
return
if not cog_name.startswith("cogs."):
cog_name = "cogs." + cog_name