From d9edc071c64055ff89c3d1f7e8f3728aff24a136 Mon Sep 17 00:00:00 2001 From: kaiyuran <73236245+kaiyuran@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:01:51 -0500 Subject: [PATCH] update README and emojis --- README.md | 4 ++++ app.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/README.md b/README.md index e69de29..9d1f5c6 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,4 @@ +#Emojify Server +This is a simple server that takes a string as input and returns the string with emojis. The server is written in Python and uses Flask as the web framework and I am running this on Hackclub's nest server. + +I have added a bunch of emojis manually but in the future I plan to use AI to predict the emojis based on the text. \ No newline at end of file diff --git a/app.py b/app.py index ed0e10c..567043c 100644 --- a/app.py +++ b/app.py @@ -208,6 +208,51 @@ def emojify(message): "meat": "🍖", "bacon": "🥓", + "sad": "😢", + "angry": "😡", + "mad": "😡", + "fury": "😡", + "rage": "😡", + "disgust": "🤢", + "sick": "🤢", + "vomit": "🤢", + "gross": "🤢", + "nausea": "🤢", + "unhappy": "😞", + "depressed": "😞", + "miserable": "😞", + "gloomy": "😞", + "despair": "😞", + "spy": "🕵️", + "detective": "🕵️", + "sleuth": "🕵️", + "investigate": "🕵️", + "search": "🕵️", + "inspect": "🕵️", + "dance": "💃", + "dancer": "💃", + "ballerina": "💃", + "tango": "💃", + "dancing": "🕺", + "twin": "👯", + "sisters": "👯", + "twins": "👯", + "ballet": "🩰", + "pointeshoes": "🩰", + "balletshoes": "🩰", + "shoes": "👟", + "heels": "👠", + "finish": "🏁", + "sign": "🚩", + "leaf": "🍃", + "plant": "🌱", + "flower": "🌸", + "blossom": "🌸", + "rose": "🌹", + "tulip": "🌷", + "sunflower": "🌻", + "daisy": "🌼", + "hibiscus": "🌺", } message = message.strip('"')