A silly little bot that I created as a learning project. Responds to 280 character tweets with a variety of friendly yet biting TL;DR replies.
- Install yarn.
- Install yarn dependencies with
yarn install
- Create an app with Twitter and generate an access token.
- Create a config.js file in the root of your project using the below template and add the necessary key/token/secret values from the Twitter app that you created in the previous step.
module.exports = {
consumer_key: 'xxxxx',
consumer_secret: 'xxxxx',
access_token: 'xxxxx',
access_token_secret: 'xxxxx'
}
The bot is currently set to run every minute using node-cron until you manually stop it. It will log all of the 100 recent tweet results from each search to the console but only respond to 280 character tweets (excluding RTs or replies) from users with 200+ followers and a >1.49 follower-to-following ratio.
yarn start