Create a simple yet effective Twitter Bot in NodeJS (JavaScript)

Image for post
Image for post
Photo by Patrick Ward on Unsplash
nodejs
nodejs
Twitter Developer Account
Twitter Developer Account
Image for post
Image for post
It should look like this
module.exports = {consumer_key:’ ’,
consumer_secret:’ ’,
access_token:’ ’,
access_token_secret:’ ’
}
npm init -y
Image for post
Image for post
npm install — — save twit
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
T.get(‘search/tweets’,parameters,call back function)
node bot.js
Image for post
Image for post

Written by

Writer, Learner, JavaScript Developer, working on https://finalspaceapi.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store