Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.1 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.1 KB

Twitter Retweet Bot

Retweets the latest tweet tagged with @KolkataCOVIDbot hashtag. Attempts to retweet once every minute. You can always change the retweet parameter and frequency to fit your needs.

🐦 Set up a Twitter App

  • Create a Twitter App on Twitter Developers : https://apps.twitter.com/app/new .

  • Next you'll see a screen with a Details tab. Setup the App and Application Type, choose "Read and Write".

🚀 Run Locally

Clone the project

  git clone https://github.com/arghyab0/twitter-covid-bot.git

Go to the project directory

  cd twitter-covid-bot

Install dependencies

  npm install

Go to the Keys and Access Tokens tab in your Twitter App dashboard and add the following keys to the config.js file.

module.exports = {
  consumer_key: "<API key here>",
  consumer_secret: "<API secret key here>",
  access_token: "<Access token here>",
  access_token_secret: "<Access token secret here>",
};

Start the bot

  npm run start

Expect a success message in your console!

🌐 Deploy