Add .config directory to .gitignore
This commit is contained in:
parent
9d389494f9
commit
708521d4b5
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ Database.db
|
||||||
__pycache__
|
__pycache__
|
||||||
config.cfg
|
config.cfg
|
||||||
*.pyc
|
*.pyc
|
||||||
|
.config/
|
||||||
|
|
|
@ -46,7 +46,7 @@ for status in timeline:
|
||||||
for a in accounts:
|
for a in accounts:
|
||||||
two = twitools.twObject(ato=a[1], ase=a[2])
|
two = twitools.twObject(ato=a[1], ase=a[2])
|
||||||
intext = re.sub(r'https?:\/\/[\S]*', '', text)
|
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:
|
try:
|
||||||
two.tweet(tstring[:140])
|
two.tweet(tstring[:140])
|
||||||
|
|
Loading…
Reference in a new issue