-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore adult tweets [Solved]! #15
Comments
Duuuuude, thank you so much ! |
Thanks for the inspiration! Here you are: in this case, the bot will only retweet if the tweet has more than 5 retweets. |
Amazing ! |
indentation means just press "tab" on your keyboard after the if statement
the code wont work.
|
Thank you a lotfor your help ! |
It works perfectly!
I'd really appreciate it if you could add a function that skips inappropriate tweets, like those include "nudes", "sex" etc.
Because the bot keeps retweeting those kinds of tweets.
Thanks a lot for your great work!
Update:
I did it myself! it turned out to be pretty easy :)
in
main.py
scroll down to find this linefor tweet in searched_tweets:
and just paste this line below it:
if not any(y in tweet.text.lower().split() for y in config.skip_retweet_tags):
make sure to add indentation before and after the above line.
in
config.py
before the
retweet_tags
listadd this list
skip_retweet_tags = ["nude", "nudes" ,"tits" ,"booty" ,"boobs", "cum"]
you can add any more words you want the bot to ignore.The text was updated successfully, but these errors were encountered: