diff --git a/redbot/cogs/downloader/downloader.py b/redbot/cogs/downloader/downloader.py index 66afd46a5..09b1e77a3 100644 --- a/redbot/cogs/downloader/downloader.py +++ b/redbot/cogs/downloader/downloader.py @@ -1388,7 +1388,6 @@ class Downloader(commands.Cog): cog_name = self.cog_name_from_instance(cog) installed, cog_installable = await self.is_installed(cog_name) if installed: - is_installable = True made_by = humanize_list(cog_installable.author) or _("Missing from info.json") repo_url = ( _("Missing from installed repos") @@ -1396,12 +1395,14 @@ class Downloader(commands.Cog): else cog_installable.repo.clean_url ) cog_name = cog_installable.name - else: - # Assume it's in a base cog - is_installable = False - made_by = "26 & co." + elif cog.__module__.startswith("redbot."): # core commands or core cog + made_by = "Cog Creators" repo_url = "https://github.com/Cog-Creators/Red-DiscordBot" cog_name = cog.__class__.__name__ + else: # assume not installed via downloader + made_by = _("Unknown") + repo_url = _("None - this cog wasn't installed via downloader") + cog_name = cog.__class__.__name__ else: msg = _("This command is not provided by a cog.") await ctx.send(msg) @@ -1413,7 +1414,7 @@ class Downloader(commands.Cog): embed.add_field(name=_("Cog Name:"), value=cog_name, inline=False) embed.add_field(name=_("Made by:"), value=made_by, inline=False) embed.add_field(name=_("Repo URL:"), value=repo_url, inline=False) - if is_installable and cog_installable.repo is not None and cog_installable.repo.branch: + if installed and cog_installable.repo is not None and cog_installable.repo.branch: embed.add_field( name=_("Repo branch:"), value=cog_installable.repo.branch, inline=False ) @@ -1423,7 +1424,7 @@ class Downloader(commands.Cog): msg = _( "Command: {command}\nCog name: {cog}\nMade by: {author}\nRepo URL: {repo_url}\n" ).format(command=command_name, author=made_by, repo_url=repo_url, cog=cog_name) - if is_installable and cog_installable.repo is not None and cog_installable.repo.branch: + if installed and cog_installable.repo is not None and cog_installable.repo.branch: msg += _("Repo branch: {branch_name}\n").format( branch_name=cog_installable.repo.branch )