What happens when you get disappointed by that orange-flavored sparkling drink you love so much? Well, if you’re a developer, you could build a Twitter bot that invents new weird flavors every hour.
Laura Gonzalez is a Spanish-born developer, who happens to love orange Fanta. But when she moved to the UK, she soon realized that the sparkling drink didn’t taste quite as good as it used to in her home country. When she looked up the ingredients, she noticed the UK variant contained extracts from carrots and pumpkins. To say she was surprised – and disappointed – is an understatement.
Laura thought of different ways to express her frustration, before concluding that a Twitter bot would be the funniest way to go at it. “I sort of was meaning to do a jokey [blog] post about carrot and pumpkin Fanta, and I was just like ‘wait, this could be a bot’,” she said.
The result is hilarious. Laura built a bot that randomly combines a valid Emoji, a qualificative adjective, and some text for the tweet. Her custom code turns all of this into a JSON object which, in turn, renders it as a webpage. Laura then runs a shell script she created to visit the webpage, take a screenshot, and finally send the text and photo to Twitter via its API.
“This all sounds super complex, but the beauty of Node is that it has packages for literally everything, so it’s a bit like putting legos together. The actual code is probably under 1000 lines total,” she explained.
So far her bot has created and tweeted dozens of hilarious heinous Fanta flavors. See it for yourself:
Small Carrot Fanta is back for Summer! ☀️🌞 pic.twitter.com/ARTHJgZpUz
— Fun Fearless Fake Fanta (@fakefantas) May 20, 2018
Try the new White Bento Fanta pic.twitter.com/xoM42kxPrl
— Fun Fearless Fake Fanta (@fakefantas) May 20, 2018
Try the new British Dog Fanta pic.twitter.com/FakR1UEB4z
— Fun Fearless Fake Fanta (@fakefantas) May 20, 2018
Beat the heat with Sparkling Tulip Fanta! pic.twitter.com/MKNyn3Mskb
— Fun Fearless Fake Fanta (@fakefantas) May 20, 2018
Check all of Laura’s fun and fearless Fanta flavors on Twitter: @FakeFantas
More from Social Fun
This App Transforms Your Touch Bar Into A Tamagotchi
The Tamagotchi Touch Bar is the function we have all been waiting, because caring after a digital pet is definitely …
LEGO’s Take On Tesla’s First Supertruck Is Everything You Wanted It To Be
LEGO continues to be inspired by recent events, as it brings its own take on the truck of the future …
Donald Trump’s Childish Handwriting Is Now A Free Font
Donald Trump's infamous childish handwriting is now a free font anyone can download, thanks to Mark Davis, a graphic designer …