diff --git a/.gitignore b/.gitignore index 624d756..9b899b6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Database.db __pycache__ config.cfg *.pyc +.config/ diff --git a/transbot.py b/transbot.py index 1481b9d..0146811 100755 --- a/transbot.py +++ b/transbot.py @@ -46,7 +46,7 @@ for status in timeline: for a in accounts: two = twitools.twObject(ato=a[1], ase=a[2]) intext = re.sub(r'https?:\/\/[\S]*', '', text) - tstring = translator.translate(text, target_language=a[0])['translatedText'].replace("@", "@​") + tstring = translator.translate(intext, target_language=a[0])['translatedText'].replace("@", "@​") try: two.tweet(tstring[:140])