countdown-bot

A Discord bot that runs countdown games and generates analytics
git clone https://git.ashermorgan.net/countdown-bot/
Log | Files | Refs | README

commit 1f68c630e838ef516d53ab0246ea425069b54e8b
parent 47a8d0e54879f84f6050477030e6e30a2abb6b4e
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Wed, 24 Feb 2021 14:54:26 -0800

Sort reactions by number in config output

Diffstat:
Mbot.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py @@ -608,7 +608,7 @@ async def config(ctx, key=None, *args): embed.description += f"**Reactions:** none\n" else: embed.description += f"**Reactions:**\n" - for reaction in channel["reactions"]: + for reaction in sorted(channel["reactions"].keys(), reverse=True): embed.description += f"**-** #{reaction}: {', '.join(channel['reactions'][reaction])}\n" elif (not ctx.message.author.guild_permissions.administrator): embed.color = COLORS["error"]