michalspano / the-swedish-bot

🤖 A Twitter Scraper and a smart Discord bot.
https://twitter.com/TheSwedishBot
MIT License
2 stars 0 forks source link

Twitter sensitive content issue #5

Closed michalspano closed 3 years ago

michalspano commented 3 years ago

Redundant sensitive content method at botCore.py.

retweeted, liked = tweet_status.retweeted, tweet_status.favorited
            if hasattr(tweet, "possibly_sensitive"):

                #  Likes and retweets a tweet if: no like and no retweet previously + no sensitive content
                if not retweeted and not liked and not tweet_status.possibly_sensitive:
                        #  TO-DO...

Search settings can be manually edited via account preferences, hence no special method is required. Redundant method causes slower application performance.

Suggestion: above mentioned block of code (or function) be reviewed and tested.

Issued by @michalspano

michalspano commented 3 years ago

Bug fixed: 22494a1d705b79b6f1e0508609b2017e299b2346 @michalspano