mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
[Downloader] [p]findcog: Find a cog from a command (#855)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user