mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[p]cogs and [p]repo now print alphabetically
This commit is contained in:
parent
c7e8c95640
commit
1cb74f0ea7
@ -248,6 +248,7 @@ class Downloader:
|
|||||||
Lists all installed repos.
|
Lists all installed repos.
|
||||||
"""
|
"""
|
||||||
repos = self._repo_manager.get_all_repo_names()
|
repos = self._repo_manager.get_all_repo_names()
|
||||||
|
repos = sorted(repos, key=str.lower)
|
||||||
joined = _("Installed Repos:\n") + "\n".join(["+ " + r for r in repos])
|
joined = _("Installed Repos:\n") + "\n".join(["+ " + r for r in repos])
|
||||||
|
|
||||||
for page in pagify(joined, ["\n"], shorten_by=16):
|
for page in pagify(joined, ["\n"], shorten_by=16):
|
||||||
|
|||||||
@ -415,6 +415,9 @@ class CogManagerUI:
|
|||||||
|
|
||||||
unloaded = all - loaded
|
unloaded = all - loaded
|
||||||
|
|
||||||
|
loaded = sorted(list(loaded), key=str.lower)
|
||||||
|
unloaded = sorted(list(unloaded), key=str.lower)
|
||||||
|
|
||||||
loaded = ('**{} loaded:**\n').format(len(loaded)) + ", ".join(loaded)
|
loaded = ('**{} loaded:**\n').format(len(loaded)) + ", ".join(loaded)
|
||||||
unloaded = ('**{} unloaded:**\n').format(len(unloaded)) + ", ".join(unloaded)
|
unloaded = ('**{} unloaded:**\n').format(len(unloaded)) + ", ".join(unloaded)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user