[Downloader] Improve partial-uninstall message in [p]cog uninstall (#3343)

* Update downloader.py

* Let's use more of Flame's suggestions.

Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>

Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
jack1142 2020-01-13 00:21:00 +01:00 committed by Michael H
parent a984971774
commit cb49c5d420

View File

@ -748,11 +748,15 @@ class Downloader(commands.Cog):
message += _("Successfully uninstalled cogs: ") + humanize_list(uninstalled_cogs) message += _("Successfully uninstalled cogs: ") + humanize_list(uninstalled_cogs)
if failed_cogs: if failed_cogs:
message += ( message += (
_("\nThese cog were installed but can no longer be located: ") _(
"\nDownloader has removed these cogs from the installed cogs list"
" but it wasn't able to find their files: "
)
+ humanize_list(tuple(map(inline, failed_cogs))) + humanize_list(tuple(map(inline, failed_cogs)))
+ _( + _(
"\nYou may need to remove their files manually if they are still usable." "\nThey were most likely removed without using `{prefix}cog uninstall`.\n"
" Also make sure you've unloaded those cogs with `{prefix}unload {cogs}`." "You may need to remove those files manually if the cogs are still usable."
" If so, ensure the cogs have been unloaded with `{prefix}unload {cogs}`."
).format(prefix=ctx.prefix, cogs=" ".join(failed_cogs)) ).format(prefix=ctx.prefix, cogs=" ".join(failed_cogs))
) )
await ctx.send(message) await ctx.send(message)