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:
https://twitter.com/fakefantas/status/998279980755939328
https://twitter.com/fakefantas/status/998209030656086016
https://twitter.com/fakefantas/status/998209166744399875
https://twitter.com/fakefantas/status/998208955993255937
Check all of Laura’s fun and fearless Fanta flavors on Twitter: @FakeFantas
You might also like
More from Social Fun
Veriforever Lets You Commemorate Your Twitter Verification Forever
Veriforever is a web app that lets you create a personalized plaque to commemorate your Twitter verification. Before Elon takes …
This Amazing Video Compares How Deep The Oceans Are With Famous Landmarks
It's hard to realize how deep the oceans are until you compare their depth with famous landmarks like The Eiffel …
Google Japan Unveils An Insane 5-Foot Long Keyboard
The “Key Bou” is an insane 5-foot straight bar keyboard designed by Google to promote its virtual GBoard, available on …
Twitter Bans Wordle Bot That Has Been Annoying Players
Wordle fans, rejoice! Twitter has banned the @Wordlinator bot spoiling your guesses with accurate answers and rude messages!
Fisher-Price’s Iconic Chatter Telephone Can Now Make Real Calls
Fisher-Price is bringing back its beloved Chatter Telephone and enabling it to make and receive real calls with Bluetooth.
Balenciaga Premiers Its Spring Collection In An Episode Of The Simpsons
Balenciaga celebrated the return to fashion events with an entertaining cartoon representation and a live show that disrupts the norm.
A Crypto-Trading Hamster Is Outperforming Human Traders
A day-trading hamster on Twitch is making more profits on his cryptocurrency trades than some professional traders and big funds.
New Unicode Standard Version Brings 37 New Emoji
The Unicode Consortium has finalized drafts for its latest Standard version, adding 838 characters - among them, 37 new emoji.
Halloween: Become A True Impostor With The Official Among Us Costumes
If you are looking for a fun, easy-going, and funny costume for Halloween, why not become a true Among Us …