aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anubhav <[email protected]>2020-10-02 18:10:04 +0530
committerGravatar GitHub <[email protected]>2020-10-02 18:10:04 +0530
commit40f0c0e5b5c361ca3acf5e39b55470d2b9ea0bc4 (patch)
treef12685127ef81b1536ded991228ca3f4d50d5308
parentUpdate bot/exts/evergreen/emoji_count.py (diff)
removed update and added data to dict directly
Co-authored-by: Matteo Bertucci <[email protected]>
-rw-r--r--bot/exts/evergreen/emoji_count.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/emoji_count.py b/bot/exts/evergreen/emoji_count.py
index 4b35c619..e9bd8c35 100644
--- a/bot/exts/evergreen/emoji_count.py
+++ b/bot/exts/evergreen/emoji_count.py
@@ -46,7 +46,7 @@ class EmojiCount(commands.Cog):
embed.title = "Invalid Input"
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 sent")