Twitter-Giveaways-Bot icon indicating copy to clipboard operation
Twitter-Giveaways-Bot copied to clipboard

Can you add a ban keyword option ?

Open MisterWapak opened this issue 6 years ago • 14 comments

Hello, i love this progam, he work perfectly bu i think you miss 1 option: a ban keyword option. Its could be great because I don't like that my bot RT and follow giveway of nude pics... You can also add a minimum RT count before RT a giveway, that could be great improve If you have time to do that, it will be awesome ! Thanks for your good work, bye :)

MisterWapak avatar Oct 26 '19 12:10 MisterWapak

I just started using it a couple of days ago, you seem to have been using this bot for while :D I'm just curious did you win any giveaways?

ItsOmarKhater avatar Dec 19 '20 19:12 ItsOmarKhater

Oh yes, I use it for like 2 years now lol I won a lot of things (T-shirt, games on steam, lots and lots of nudes that I don't want :s). Just be sure to set the time of rt per sec at a minimum of 60 sec if you don't want to have your account banned (i have like 3 account ban in 2 years lol).

MisterWapak avatar Dec 20 '20 01:12 MisterWapak

I've updated the previous ban keyword code. Now you don't have to include every single variation of a word in the ban list, cuz the bot was treating "nude" and "nudes" as different words. that's fixed in the following code which works way better: in main.py scroll down to find this line for tweet in searched_tweets: and just paste this code below it: adult= False for BadWord in config.skip_retweet_tags: if (tweet.text.lower().find(BadWord) != -1): #if bad word from skip_retweet_tags was found in a tweet adult = True # retweet count and date if tweet.retweet_count>15: #only retweet if retweet count is more than 15 retweets if not (adult): #if tweet doesn't include bad words proceed

make sure to add indentation after the above code.

in config.py before the retweet_tags list add this list skip_retweet_tags = ["nude","tits" ,"booty" ,"boobs", "cum"] you can add the words that you want the bot to skip them.

ItsOmarKhater avatar Dec 21 '20 22:12 ItsOmarKhater

@OmarAshraf2030 if you make a fork, update the code there, and send me the link maybe i can add it to the official repo

disestevez avatar Dec 21 '20 22:12 disestevez

@OmarAshraf2030 if you make a fork, update the code there, and send me the link maybe i can add it to the official repo

I'm new to GitHub 😁, I'll see how to do that fork thing :)

ItsOmarKhater avatar Dec 21 '20 22:12 ItsOmarKhater

hah no problem. this might help: https://guides.github.com/activities/forking

disestevez avatar Dec 21 '20 22:12 disestevez

tweet Is this how the indentation is supposed to be??

@OmarAshraf2030 if you make a fork, update the code there, and send me the link maybe i can add it to the official repo

I'm new to GitHub , I'll see how to do that fork thing :)

The-Great-One avatar Dec 23 '20 11:12 The-Great-One

@OmarAshraf2030 if you make a fork, update the code there, and send me the link maybe i can add it to the official repo

Here's my fork 😃 https://github.com/ItsOmarKhater/Twitter-Giveaways-Bot What's new?

  • Added ban keyword list (ignore tweets that contain certain keywords)
  • Don't retweet tweets that have a few numbers of retweets (to avoid retweeting fake giveaways)
  • Don't retweet old tweets (you can set the bot to ignore tweets that are older than 30 days for example)

ItsOmarKhater avatar Dec 24 '20 23:12 ItsOmarKhater

tweet Is this how the indentation is supposed to be??

@OmarAshraf2030 if you make a fork, update the code there, and send me the link maybe i can add it to the official repo

I'm new to GitHub , I'll see how to do that fork thing :)

Sorry for the late reply! I've added the changes in my fork.

ItsOmarKhater avatar Dec 24 '20 23:12 ItsOmarKhater

Hello again, I tried your code and the cmd say when I run it: "Global Name 'datetime' is not defined" I don't know if I'm doing something wrong. Hope you can help me :)

MisterWapak avatar Dec 26 '20 02:12 MisterWapak

Hello again, I tried your code and the cmd say when I run it: "Global Name 'datetime' is not defined" I don't know if I'm doing something wrong. Hope you can help me :)

I forgot to import datetime 😅 in main.py add this line from datetime import datetime, timezone

ItsOmarKhater avatar Dec 26 '20 07:12 ItsOmarKhater

Hello again, I tried your code and the cmd say when I run it: "Global Name 'datetime' is not defined" I don't know if I'm doing something wrong. Hope you can help me :)

I forgot to import datetime sweat_smile in main.py add this line from datetime import datetime, timezone

I think there is still some indentation error at line 60. Can you please check?

The-Great-One avatar Dec 26 '20 12:12 The-Great-One

I think there is still some indentation error at line 60. Can you please check?

Thanks for pointing this out! I fixed it, try it now and tell me if it's working properly!

ItsOmarKhater avatar Dec 26 '20 12:12 ItsOmarKhater

Is this bot still working? I am doing something wrong but i dont know what, it just closes instantly when i am opening it.

maconeedshelp avatar Jul 24 '21 19:07 maconeedshelp