mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Trivia] [p]trivia list: Return sorted lists
This commit is contained in:
parent
33823e2dab
commit
1577e7d854
@ -142,7 +142,7 @@ class Trivia:
|
|||||||
lists = [l.replace(".txt", "") for l in lists]
|
lists = [l.replace(".txt", "") for l in lists]
|
||||||
|
|
||||||
if lists:
|
if lists:
|
||||||
msg = "+ Available trivia lists\n\n" + ", ".join(lists)
|
msg = "+ Available trivia lists\n\n" + ", ".join(sorted(lists))
|
||||||
msg = box(msg, lang="diff")
|
msg = box(msg, lang="diff")
|
||||||
if len(lists) < 100:
|
if len(lists) < 100:
|
||||||
await self.bot.say(msg)
|
await self.bot.say(msg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user