This NodeJS application allows you to favourite specific tweets.
I use some ES6 syntax so please use Node 7, or change the syntax.
Twitter's API only allows for 100 connections within an hour, per account (not the application), hence the reason for the 5 minute interval.
This application wasn't built for spam, just to engage with specific posts.
- Clone the repository
git clone https://github.com/aarogrammer/favouritebot.git - CD in to the directory
CD favouritebot - Install dependencies
npm install - Create a Twitter app (https://apps.twitter.com)
- Edit Twitter authentication credentials in
auth.js - Start application:
npm startornode app
To edit the the search, simply edit the values of TWITTER_SEARCH_PHRASE
- Fork it!
- Create your feature branch:
git checkout -b branch-name - Add files to staging
git add . - Commit your changes:
git commit -m 'Here are my changes' - Push to the branch:
git push origin branch-name - Submit a pull request and I will look at it ASAP.
This application is based off Debashis Barman Retweet bot that I came across when bored, and decided to cure my boredom by doing this application.
Check out his article here: https://medium.com/@DebashisBarman/creating-a-twitter-bot-with-node-js-bea760b80bd5#.bylwy87fw
Twitter API Client: https://github.com/ttezel/twit
Aaron Welsh
http://aaron-welsh.co.uk