diff options
| author | 2020-10-02 18:35:24 +0530 | |
|---|---|---|
| committer | 2020-10-02 18:35:24 +0530 | |
| commit | f3da3ad817f5ae53618000440b1f055f4836062d (patch) | |
| tree | 598e72e7e0e31de8cc55524e2a1c72bd79e9f72f | |
| parent | added annotation (diff) | |
| parent | removed update and added data to dict directly (diff) | |
Merge branch 'ec' of github.com:Anubhav1603/seasonalbot into ec
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/emoji_count.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/bot/exts/evergreen/emoji_count.py b/bot/exts/evergreen/emoji_count.py index c303cb7e..3ad0d61b 100644 --- a/bot/exts/evergreen/emoji_count.py +++ b/bot/exts/evergreen/emoji_count.py @@ -18,7 +18,7 @@ class EmojiCount(commands.Cog):          self.bot = bot      def embed_builder(self, emoji: dict) -> discord.Embed: -        """Genrates embed with emoji name and count.""" +        """Generates an embed with the emoji names and count."""          embed = discord.Embed()          embed.color = Colours.orange          embed.title = "Emoji Count" @@ -45,7 +45,7 @@ class EmojiCount(commands.Cog):          embed.title = random.choice(ERROR_REPLIES)          emoji_dict = {}          for emoji in ctx.guild.emojis: -            emoji_dict.update({emoji.name.split("_")[0]: []}) +            emoji_dict[emoji.name.split("_")[0]] = []          error_comp = ', '.join(key for key in emoji_dict.keys())          embed.description = f"These are the valid categories\n```{error_comp}```"          log.trace("Error embed built") @@ -68,7 +68,7 @@ class EmojiCount(commands.Cog):          emoji_dict = {}          for a in ctx.guild.emojis:              if emoji is None: -                log.trace("Emoji Category doesn't provided by the user") +                log.trace("Emoji Category not provided by the user")                  emoji_dict.update({a.name.split("_")[0]: []})              elif a.name.split("_")[0] in emoji:                  log.trace("Emoji Category provided by the user") | 
