mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 01:13:14 +02:00
Update joke.py
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user