Skip to content

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

0 stars

Watchers

1 watching

Forks

Contributors