Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
update unicode emoji list
Browse files Browse the repository at this point in the history
  • Loading branch information
tnix100 committed Aug 22, 2024
1 parent 4d2693a commit 522d90c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions emojis/unicode-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,28 @@

resp_json = resp.json()

# Combine 'smileys_emotion' and 'people_body' into one 'people_emotion' category
resp_json[0].update({
"name": "People & Emotion",
"slug": "people_emotion",
"emojis": resp_json[0]["emojis"] + resp_json[1]["emojis"]
})
del resp_json[1]

for category in resp_json:
# Add icon emoji to category
# These are taken from meo, sorry mr. roarer
category["icon_emoji"] = {
"people_emotion": "😀",
"animals_nature": "😺",
"food_drink": "🍎",
"travel_places": "🏠",
"activities": "⚽",
"objects": "📃",
"symbols": "❤️",
"flags": "🏳️‍🌈"
}.get(category["slug"])

for emoji in category["emojis"]:
# Replace name with slug
emoji["name"] = emoji.pop("slug")
Expand Down
2 changes: 1 addition & 1 deletion emojis/unicode.json

Large diffs are not rendered by default.

0 comments on commit 522d90c

Please sign in to comment.