Skip to content

avinashadev/twitterbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter bot to auto send a direct message after following

How to get Twitter API Keys

  1. Login into your twitter account and go to https://apps.twitter.com
  2. Next click on create new app button create app
  3. Next enter app name and other details app-name
  4. Next we can see our app details app-details
  5. Next click on Generate Access tokens to get the app access tokens app-token

Usage:

create a Javascript file in config folder name it twitter-keys.js

  • Next add the following snippet to configure Twitter API keys.
  • A sample file is included to get started in /config/twitter-keys.sample.js
module.exports = {
  consumer_key:         '...',
  consumer_secret:      '...',
  access_token:         '...',
  access_token_secret:  '...',
  timeout_ms:           60*1000,  // optional HTTP request timeout to apply to all requests.
};

Running

yarn install

yarn run start

License

Javascript Twitter Tools are released under an MIT License.

Releases

No releases published

Packages

No packages published