Skip to content

This is a tweeter bot that automatically fetches crypto news from an API and then generates commentary tweet about it and tweets that commentary through your twitter account

thisisyashgarg/news-tweeter-bot

Repository files navigation

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

About

This is a tweeter bot that automatically fetches crypto news from an API and then generates commentary tweet about it and tweets that commentary through your twitter account

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published