nisrulz / twitterbot-nodejs

[Bot] A twitter bot made using nodejs which can post tweets, retweet other tweets and possibly fav tweets
http://nisrulz.github.io/twitterbot-nodejs
Apache License 2.0
145 stars 73 forks source link

Still working but only for a few minutes #7

Open tornadough opened 4 years ago

tornadough commented 4 years ago

I have used the code for retweet bot, and it works for some time after a few minutes or few retweets there will be an error showing

for (var i = 0; i < tweets.length; i++) { 2020-09-24T07:10:23.494987+00:00 app[worker.1]: ^ 2020-09-24T07:10:23.494987+00:00 app[worker.1]: 2020-09-24T07:10:23.494988+00:00 app[worker.1]: TypeError: Cannot read property 'length' of undefined

nisrulz commented 4 years ago

Few questions and observations:

On a side note, know that twitter has updated its API many times .. almost every year. So this code is probably not in sync with what their API does anymore. 🤷