Twitty is a Node.js application built using Puppeteer, a headless Chrome Node.js API. This application lets you automatically post tweets from a text file to your Twitter account at random intervals throughout the day.
- Node.js installed on your system
- A Twitter account
- Clone the repository
git clone https://github.com/infinitybreaker/twitty.git- Navigate to the project directory
cd twitty- Install dependencies
npm install- Rename config.example.ts to config.ts
- Fill in your Twitter username and password in config.ts
export const TWITTER_USERNAME = 'username';
export const TWITTER_PASSWORD = 'password';- Add your tweets to tweets.txt, one tweet per line
To start the application, run:
npm run startThis will start the Twitty. The application will read the tweets from the tweets.txt file and schedule them to be posted on your Twitter account at random intervals throughout the day.
The TweetScheduler class handles the scheduling of the tweets. It reads tweets from a provided text file and schedules them to be posted at random intervals throughout the day, ensuring a minimum gap of 2 hours between each tweet.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
MIT
Please note that this project is for educational purposes and should not be used to spam or violate Twitter's terms of service.