From d1a5a420755945ec7f197c92f90a17ac331390e9 Mon Sep 17 00:00:00 2001 From: Anubhav <57266248+Anubhav1603@users.noreply.github.com> Date: Sun, 11 Oct 2020 18:18:00 +0530 Subject: Update bot/exts/evergreen/emoji_count.py Co-authored-by: Rohan Reddy Alleti --- bot/exts/evergreen/emoji_count.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/exts/evergreen/emoji_count.py b/bot/exts/evergreen/emoji_count.py index 0c18c9ee..328ceaad 100644 --- a/bot/exts/evergreen/emoji_count.py +++ b/bot/exts/evergreen/emoji_count.py @@ -37,7 +37,10 @@ class EmojiCount(commands.Cog): else: for category_name, category_emojis in emoji.items(): emoji_choice = random.choice(category_emojis) - emoji_info = f'There are **{len(category_emojis)}** emojis in the **{category_name}** category' + emoji_info = ( + f"There {'is' if len(category_emojis) == 1 else 'are'} **{len(category_emojis)}** " + f"{'emoji' if len(category_emojis) == 1 else 'emojis'} in the **{category_name}** category" + ) if emoji_choice.animated: msg.append(f' {emoji_info}') else: -- cgit v1.2.3