spences10 / twitter-bot-bootstrap

Twitter bot bootstrap :boot: using node and twit :bird:
https://medium.freecodecamp.com/easily-set-up-your-own-twitter-bot-4aeed5e61f7f#.dw898leyj
MIT License
231 stars 104 forks source link

Retweet timing is off? #209

Closed StephenEller86 closed 6 years ago

StephenEller86 commented 6 years ago

Hope I'm not blowing you up with issues and comments lol.

I noticed that when I have my settings at: TWITTER_RETWEET_RATE=.5 TWITTER_SEARCH_COUNT=20

my twitter is not posting every 30 seconds so I created two instances, one instance at : TWITTER_RETWEET_RATE=10 TWITTER_SEARCH_COUNT=10 and one at: TWITTER_RETWEET_RATE=.5 TWITTER_SEARCH_COUNT=20

My twitter is posting sporadically with hours in between texts. It sent out 2 texts in 13 hours then its next tweet was 3 hours later and it retweeted once, then 2 hours later twice, then 7 hours later 3 times, then 1 hour later 1 time.

Do you know why it might be doing this? Config is unchanged at: retweet: process.env.TWITTER_RETWEET_RATE 1000 60,

thanks!

spences10 commented 6 years ago

No problem @toxxn :+1:

What is it that you have for your search parameters?

Usually, if there's not enough traffic for your specified keywords then you're going to get weird results with the Twitter search API, that's why I now prefer to use the .on stream API as it will watch for your specified words and there's no need to set intervals for searching.

I know I've not really answered your issue and I haven't looked at the code in months other than to push the occasional patch.

Thanks

spences10 commented 6 years ago

Closing this now due to inactivity, reopen if you have anything else to add

Many thanks