Replace emoji for speaker

main
Bob Mottram 2021-03-02 16:50:32 +00:00
parent 587a3fac87
commit a4a41ae257
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ def speakerReplaceLinks(sayText: str, translate: {},
linkedStr = translate['Linked']
prevWord = ''
for word in wordsList:
if word.startswith(':'):
if word.endswith(':'):
replacements[word] = ', emoji ' + word.replace(':', '') + ','
continue
# replace mentions, but not re-tweets
if word.startswith('@') and not prevWord.endswith('RT'):
replacements[word] = \