- Note: This repository is made for education purposes only
The Twitter Bot repository is a code base that controls a Twitter Bot. When run, it scraps quotes from a quotes website and passes them to a database. The bot then signs in to Twitter using a Google Account, writing down the email and password. It then posts regularly using specifications defined by the user. The bot only starts to work when the user signs in and activates the bot with the specification on how much to post.
The requirements to start the chatbot are MongoDB Compass, Node JS, and a .env file. The package requirements are available in the package.json file.
You must have a Twitter account connected to Google to use the bot.
To start using the bot, you must define some emails and passwords:
- Google's email & password for the Twitter Account
- The Google Email & password must be under the name: TWITTER_EMAIL, TWITTER_PASSWORD
- A password & email to access the bot
- This is a user-defined email and password for accessing and activating the bot control section.
- The email and password variable names should be: EMAIL, PASSWORD
- An email and App password for sending successful and warning emails
- This is the email and app password for the Gmail account that will send the emails.
- The App password is generated when you visit Google's safety settings under Two-factor authentication.
- The name of the email and App password should be: SEND_EMAIL, APP_PASSWORD
The bot is created using Node JS, so it must be installed on the computer. The bot uses a MongoDB to store the quotes. The user must create a database named "quotes" as it will be used in the scripts.
To see an example of the bot running, visit: https://x.com/TheWordlyWisdow