Skip to content

Commit

Permalink
Merge pull request #15 from Otavio-S/develop
Browse files Browse the repository at this point in the history
tunning parameters
  • Loading branch information
otaviouss authored Feb 15, 2022
2 parents a13c7d3 + ca288ca commit fd2e804
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ethicsBot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from asyncio.log import logger
from deep_translator import GoogleTranslator
from platform import python_version
from dotenv import load_dotenv
Expand Down Expand Up @@ -74,6 +73,8 @@ def on_status(self, status):
status.full_text.find("Download") != -1 or
status.full_text.find("sale") != -1 or
status.full_text.find("Sale") != -1 or
status.full_text.find("#coding") != -1 or
status.full_text.find("homework") != -1 or
status.full_text == self.last_tweet
):
return
Expand Down Expand Up @@ -113,8 +114,8 @@ def on_status(self, status):
else:
return

print('---\nUsername: ' + status.user.screen_name)
print(status.full_text)
# print('---\nUsername: ' + status.user.screen_name)
# print(status.full_text)

translated_tweet = GoogleTranslator(source='auto', target='pt').translate(status.full_text)

Expand Down

0 comments on commit fd2e804

Please sign in to comment.