Update joke.py

This commit is contained in:
SpudGunMan
2024-10-08 16:21:49 -07:00
parent eac0700338
commit f3dc72b234
+2 -1
View File
@@ -25,7 +25,8 @@ def sendWithEmoji(message):
'juggling': '🤹', 'meditation': '🧘', 'sauna': '🧖', 'rock climbing': '🧗', 'stop': '🛑'
}
words = message.split()
words = message.lower().split()
words = words.replace('.', '').replace(',', '').replace('!', '').replace('?', '')
i = 0
while i < len(words):
for phrase in sorted(wordToEmojiMap.keys(), key=len, reverse=True):