add ratelimit logging, fix issue where duplicate names would overwrite
previous emojis
Change-Id: I55054fed2b2c883c7078541714509aa49419072a
diff --git a/index.ts b/index.ts
index 85ef717..1b1b5c0 100644
--- a/index.ts
+++ b/index.ts
@@ -86,10 +86,9 @@
name = name.substring(0,-(i.toString().length)) + i
i++
}
- console.log(name)
- // const outEmoji = await uploadEmoji(guild, {name, attachment});
- // console.log(`${name}: ${outEmoji.id}`)
- // emojis.set(name, outEmoji.id);
+ const outEmoji = await uploadEmoji(guild, {name, attachment});
+ console.log(`${name}: ${outEmoji.id}`)
+ emojis.set(name, outEmoji.id);
emojiCount--;
currentEmojiIndex++;