mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
65e07091ca
|
|
@ -93,7 +93,7 @@ def speakerReplaceLinks(sayText: str, translate: {},
|
|||
prevWord = ''
|
||||
for word in wordsList:
|
||||
# replace mentions, but not re-tweets
|
||||
if word.startswith('@') and prevWord != 'RT':
|
||||
if word.startswith('@') and not prevWord.endswith('RT'):
|
||||
replacements[word] = \
|
||||
translate['mentioning'] + ' ' + word[1:] + ','
|
||||
prevWord = word
|
||||
|
|
|
|||
Loading…
Reference in New Issue