AklaBot is your friendly coding quote Twitter bot developed using Spring Boot and the Twitter4J API. It's here to sprinkle your Twitter feed with coding wisdom and humor. 🚀💻
AklaBot is designed to bring a smile to your face through coding quotes. At specific intervals, the bot tweets out random coding quotes sourced from a predefined .txt
file. The magic happens through the synergy of Spring Boot's scheduling and the Twitter4J API.
Follow @aklabot on Twitter to enjoy a daily dose of coding humor and inspiration.
To run your own instance of AklaBot, follow these steps:
Start by cloning the repository to your local machine:
git clone https://github.com/akhilajohnsonc/AklaBot.git
cd AklaBot
AklaBot uses Twitter4J to interact with Twitter's API. Here's how to set it up:
-
Visit Twitter Developer and create a new application to obtain your API keys and access tokens.
-
Open
src/main/resources/application.properties
and replace the following placeholders with your Twitter API credentials:twitter4j.oauth.consumerKey=YOUR_CONSUMER_KEY twitter4j.oauth.consumerSecret=YOUR_CONSUMER_SECRET twitter4j.oauth.accessToken=YOUR_ACCESS_TOKEN twitter4j.oauth.accessTokenSecret=YOUR_ACCESS_TOKEN_SECRET
Add your own coding quotes to src/main/resources/tweets.txt
. Each quote should be on a new line.
Build and run the Spring Boot application:
./mvnw spring-boot:run
AklaBot will now start tweeting coding quotes at specified intervals.
Want to add your own touch of humor to AklaBot? We welcome contributions! Here's how you can do it:
Click the "Fork" button at the top right corner of this repository. This will create your own copy of the project.
Clone the repository to your local machine using the following command:
git clone https://github.com/your-username/AklaBot.git
Replace your-username
with your GitHub username.
Navigate to the cloned repository on your machine and open src/main/resources/tweets.txt
. Add your coding quotes, each on a new line.
Navigate to the cloned repository on your machine and make your changes. Feel free to enhance the code or introduce new features. Let your creativity flow! 🎉
After making your changes, commit them with descriptive commit messages:
git add .
git commit -m "Add: Your changes here"
git push origin main
Go to your forked repository on GitHub and click on the "New Pull Request" button. We'll review your changes and merge them into the main project if they align with our goals.
If AklaBot brought a smile to your face, consider giving it a ⭐️. It means a lot to us!
Got questions, suggestions, or just want to chat? You can reach me on Twitter @akhilajohnsonc. Let's connect! 🤝
Let's keep the coding fun alive! Happy coding and tweeting! 🎈🐦📚