aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anubhav1603 <[email protected]>2020-10-02 18:15:41 +0530
committerGravatar Anubhav1603 <[email protected]>2020-10-02 18:15:41 +0530
commit1c5f5837714b71ef93ee9eeac32e74df09a585d9 (patch)
tree43f6c29827dc9ca12e62a542a228139e478a3592
parentadded ctx annotation (diff)
changed error_msg to emoji_info
-rw-r--r--bot/exts/evergreen/emoji_count.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/emoji_count.py b/bot/exts/evergreen/emoji_count.py
index fa0879ae..95e4c927 100644
--- a/bot/exts/evergreen/emoji_count.py
+++ b/bot/exts/evergreen/emoji_count.py
@@ -32,8 +32,8 @@ class EmojiCount(commands.Cog):
msg = ''
for key, value in emoji.items():
emoji_choice = random.choice(value)
- error_msg = f'There are **{len(value)}** emojis in the **{key}** category\n'
- msg += f'<:{emoji_choice.name}:{emoji_choice.id}> {error_msg}'
+ emoji_info = f'There are **{len(value)}** emojis in the **{key}** category\n'
+ msg += f'<:{emoji_choice.name}:{emoji_choice.id}> {emoji_info}'
embed.description = msg
log.trace('Emoji embed sent')
return embed
@@ -61,7 +61,7 @@ class EmojiCount(commands.Cog):
log.trace("Emoji dict sent")
return emojis
- @commands.command(name="ec")
+ @commands.command(name="emoji_count", aliases=["ec"])
async def ec(self, ctx: commands.Context, *, emoji: str = None) -> Optional[str]:
"""Returns embed with emoji category and info given by user."""
emoji_dict = {}