DEV Community

Cover image for Java/Spring Twitter Bot
Rus Kuzmin
Rus Kuzmin

Posted on • Updated on

Java/Spring Twitter Bot

Ah, ye ol' twitter bot... Gotta love them.

I've been sat at home for the past couple of months self-isolating and have become dreadfully bored.. So why not work on a cool little project? I definitely didn't get super excited and giggled like I was witing my first hello world when the @ItsMelonBot actually posted a tweet.

Believe me, I know its nothing fancy, I essentially do this every day at work but it was still pretty cool non the less... It the little things in life!

The journey began with me going through medium until I came across a post 'cool programming projects' and saw the twitter bot and thought... why not.

I needed an idea, a retweet bot? Boring. A trend bot. Booooring. How about a melon bot?... A what?

Alt Text

I kicked started Intellij and started the process, had it finished in 15 minutes or so. The thing that did take me ages to get my head around was deploying it into Azure. Now that... that was a b****. I tried to sign up to AWS but for whatever reason AWS didn't like me very much so off to Azure I went. Azure is seriously complicated... It took a while to get my head around how it all works but we got there in the end and it made deploying my bot to the cloud much faster and easier.

For anyone interested, I've created a public GitHub repo with detailed documentation and comments on how to get it up and running, thought some of you would like to play around with it or add some functionality.

https://github.com/goldennoodles/Spring-Twitter-Bot

Alt Text

Just wanted to get my thoughts on paper. If you would like to see a full tutorial on deploying it, etc. Let me know!

Oh and follow the bot, he's pretty funny.
https://twitter.com/ItsMelonBot

Rus - ItsMelonBot's papa.

Top comments (2)

Collapse
 
andypiper profile image
Andy Piper • Edited

Nice work! To make things fully legit, you might want to add more to the bot's bio - see this post for more information - easy enough to edit manually without needing to use that code, if you only have one bot.

Collapse
 
goldennoodles profile image
Rus Kuzmin

Thank you!