mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 04:38:55 -05:00
[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:
parent
a984971774
commit
cb49c5d420
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user