Skip to content

namila007/daily-quote-twitter-bot

Repository files navigation

Daily-Quote-Twitter Bot

nb bot

Build Status

Intro

A twitter bot made by nodejs, using twitter api. this will post QOTD, hourly quotes and reply to @ mention with a random quotes

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 set NODE_ENV = 'dev' for developing and NODE_ENV = 'production' for normal usage

  4. run npm install

  5. run npm start

Deploy

User can deploy this to heroku. Create Config Vars for each in .env file and deploy

API End Points

GET /count

  • return relevent botid tweet count
  • example: {"data":258}

GET /quote

  • return a random quote
  • example: {"quote": "TEXT","author":"TEXT"}

GET /ping

  • return a HTTP Status 200 OK

this repo is derived from the NB-personal-bot repo