1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix emoji case

This commit is contained in:
Steffo 2019-02-19 21:06:57 +01:00
parent 785178117d
commit 3f66f9d84f

View file

@ -49,7 +49,7 @@ emojis = {
}
def emojify(string: str):
new_string = string
new_string = string.lower()
for key in emojis:
selected_emoji = random.sample(emojis[key], 1)[0]
new_string = new_string.replace(key, selected_emoji)