Add .config directory to .gitignore
This commit is contained in:
parent
9d389494f9
commit
708521d4b5
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ Database.db
|
|||
__pycache__
|
||||
config.cfg
|
||||
*.pyc
|
||||
.config/
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue