mirror of https://gitlab.com/bashrc2/epicyon
Replace emoji for speaker
parent
587a3fac87
commit
a4a41ae257
|
@ -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] = \
|
||||
|
|
Loading…
Reference in New Issue