Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 1.01 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.01 KB

NB-Twitter Bot

nb bot

Deploy Build Status

Intro

A twitter bot made by nodejs, using twitter api

Run the code

  1. Create a twitter account and create a Twitter app
  2. Clone the git
  3. make .env file and copy .env.example and add the relevant keys from twitter app. Twitter userIDs can be obtain from 3rd party site
  4. run npm install
  5. If you want to add more users change var users = [ config.userid ] in streaming.js file and add user ids to monitor. example: var users = [ 'XXXXX' , 'YYYYYY']
  6. run npm start

Deploy

User can deploy this to heroku. Create Config Vars for each in .env file and deploy or simply press DEPLOY button. in .env files you cant add arrays.so need to add ids in the code