Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 852 Bytes

README.md

File metadata and controls

59 lines (42 loc) · 852 Bytes

News Commentary Tweeter Bot

This is a tweeter bot that automatically gets the news from an api and then generates commentary tweet about them and tweets them

Requirements

  • Node
  • npm
  • express
  • dotenv
  • twit
  • openAI
  • xml-js

Installation

Clone the repository

git clone https://github.com/thisisyashgarg/news-tweeter-bot.git

Install the dependencies

npm i

Set up the environment

touch .env

Add your credentials and API key in the .env file

consumer_key = your-consumer-key
consumer_secret = your-consumer-secret
access_token = your-access-token
access_token_secret = your-access-token-secret
OPENAI_API_KEY = your-openai-api-key

Install the required libraries

npm install twit
npm install openai
npm install xml-js

Usage

Run the program

node index.js