Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.27 KB

README.md

File metadata and controls

70 lines (48 loc) · 1.27 KB

🚀Twitter bot with JavaScript and Nodejs👨‍💻

Bot that you can use to send tweets to your profile.


Instaler package.json:

npm init --y

Instaler Twitter library:

npm install twitter  

or

npm i twitter

Create a Twitter App in https://developer.twitter.com/en/apps to get API key and access token

  • Click in Create App.
  • imageapp

  • Fill in the required information.
  • Now the application data: Application name, description, example website: botTwitter.com.
  • Click in Create.


  • Find the api key and access token Click in Keys and Tokens:

    imagetonke

  • Copy api key and paste in:
  • consumer_key:'your consumer key'
    
  • Copy api secret key and paste in:
  • consumer_secret:'your consumer secret'
    

    Generate Token down, click on generate:

  • Copy access token and paste in:
  • access_token_key:'your access token'
    
  • Copy access token secret and paste in:
  • access_token_secret:'your access token secret'
    

    As a last step, run the code.

    node server.js
    

    Don't show your API key and access token!