Skip to content

πŸ€– Twitter bot to retweet COVID help requests built using NodeJS

License

Notifications You must be signed in to change notification settings

arghyab0/twitter-covid-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

πŸ€– Twitter bot to retweet COVID help requests built using NodeJS

Topics

Resources

License

Stars

Watchers

Forks