This is a tweeter bot that automatically gets the news from an api and then generates commentary tweet about them and tweets them
- Node
- npm
- express
- dotenv
- twit
- openAI
- xml-js
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
Run the program
node index.js