This Twitter Comment bot comments on tweets containing a specified keyword. The bot uses the OpenAI API to generate comments and the Twitter API to post them. It is designed to run continuously, with a fixed delay between each comment.
- Node.js
 - Axios
 - twit
 - Twitter API
 - OpenAI API
 
- The bot uses the Twitter API to search for tweets containing the specified keyword.
 - For each tweet found, the bot uses the OpenAI API to generate a comment.
 - The bot then uses the Twitter API to post the generated comment as a reply to the tweet.
 - The bot waits for a fixed amount of time before searching for new tweets again.
 
- A Twitter developer account and API keys (with elevated access)
 - An OpenAI API key
 
The bot can be easily deployed to Heroku to run 24/7. Follow the steps in the Heroku documentation to set up a Heroku account, create a new app, and deploy the code. Don't forget to set up the environment variables in the Heroku app's settings.
Could you please spread the word through Twitter ➡️ 
I am glad to make this bot available for you to use, If you need help in setting this up on AWS or Heroku, I am willing to assist you. However, please note that this service comes at a cost.
Starting from now, all bots must be developed using the Twitter API v2.
I can help you migrate your project to the new API. Feel free to contact me here for assistance.
To verify this deprecation and learn more, please visit this link.