2019-02-19 18:37:17 +00:00
|
|
|
|
import random
|
|
|
|
|
|
|
|
|
|
emojis = {
|
|
|
|
|
"abcd": ["🔡", "🔠"],
|
|
|
|
|
"back": ["🔙"],
|
|
|
|
|
"cool": ["🆒"],
|
|
|
|
|
"free": ["🆓"],
|
|
|
|
|
"abc": ["🔤"],
|
|
|
|
|
"atm": ["🏧"],
|
|
|
|
|
"new": ["🆕"],
|
|
|
|
|
"sos": ["🆘"],
|
|
|
|
|
"top": ["🔝"],
|
|
|
|
|
"zzz": ["💤"],
|
|
|
|
|
"end": ["🔚"],
|
|
|
|
|
"ab": ["🆎"],
|
|
|
|
|
"cl": ["🆑"],
|
|
|
|
|
"id": ["🆔"],
|
|
|
|
|
"ng": ["🆖"],
|
|
|
|
|
"no": ["♑️"],
|
|
|
|
|
"ok": ["🆗"],
|
|
|
|
|
"on": ["🔛"],
|
|
|
|
|
"sy": ["💱"],
|
|
|
|
|
"tm": ["™️"],
|
|
|
|
|
"wc": ["🚾"],
|
|
|
|
|
"up": ["🆙"],
|
2019-02-19 20:08:39 +00:00
|
|
|
|
"a": ["🅰️"],
|
|
|
|
|
"b": ["🅱️"],
|
2019-02-19 18:37:17 +00:00
|
|
|
|
"c": ["☪️", "©", "🥐"],
|
|
|
|
|
"e": ["📧", "💶"],
|
|
|
|
|
"f": ["🎏"],
|
|
|
|
|
"h": ["🏨", "🏩", "🏋♀", "🏋♂"],
|
2019-02-19 20:08:39 +00:00
|
|
|
|
"i": ["ℹ️", "♊️", "🕕"],
|
|
|
|
|
"j": ["⤴️"],
|
2019-02-19 18:37:17 +00:00
|
|
|
|
"k": ["🎋", "🦅", "💃"],
|
|
|
|
|
"l": ["🛴", "🕒"],
|
|
|
|
|
"m": ["♏️", "Ⓜ️", "〽️"],
|
|
|
|
|
"n": ["📈"],
|
|
|
|
|
"o": ["⭕️", "🅾️", "📯", "🌝", "🌚", "🌕", "🥯", "🙆♀", "🙆♂"],
|
|
|
|
|
"p": ["🅿️"],
|
|
|
|
|
"q": ["🔍", "🍀"],
|
|
|
|
|
"r": ["®"],
|
2019-02-19 20:08:39 +00:00
|
|
|
|
"s": ["💰", "💵", "💸", "💲"],
|
|
|
|
|
"t": ["✝️", "⬆️", "☦️"],
|
2019-02-19 18:37:17 +00:00
|
|
|
|
"u": ["⛎", "⚓️", "🍉", "🌙", "🐋"],
|
|
|
|
|
"v": ["✅", "🔽", "☑️", "✔️"],
|
|
|
|
|
"w": ["🤷♀","🤷♂", "🤾♀", "🤾♂", "🤽♀", "🤽♂"],
|
2019-02-19 20:25:56 +00:00
|
|
|
|
"y": ["💴"],
|
2019-02-19 20:08:39 +00:00
|
|
|
|
"x": ["🙅♀", "🙅♂", "❌", "❎"],
|
|
|
|
|
"z": ["⚡️"]
|
2019-02-19 18:37:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def emojify(string: str):
|
2019-02-19 20:06:57 +00:00
|
|
|
|
new_string = string.lower()
|
2019-02-19 18:37:17 +00:00
|
|
|
|
for key in emojis:
|
|
|
|
|
selected_emoji = random.sample(emojis[key], 1)[0]
|
|
|
|
|
new_string = new_string.replace(key, selected_emoji)
|
|
|
|
|
return new_string
|