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']
|
linkedStr = translate['Linked']
|
||||||
prevWord = ''
|
prevWord = ''
|
||||||
for word in wordsList:
|
for word in wordsList:
|
||||||
|
if word.startswith(':'):
|
||||||
|
if word.endswith(':'):
|
||||||
|
replacements[word] = ', emoji ' + word.replace(':', '') + ','
|
||||||
|
continue
|
||||||
# replace mentions, but not re-tweets
|
# replace mentions, but not re-tweets
|
||||||
if word.startswith('@') and not prevWord.endswith('RT'):
|
if word.startswith('@') and not prevWord.endswith('RT'):
|
||||||
replacements[word] = \
|
replacements[word] = \
|
||||||
|
|
Loading…
Reference in New Issue