A simple meme generator bot for Whatsapp.
This bot has bugs, tons of bugs. I only wanted to learn some quick fundamentals of Twilio. The Whatsapp api publishing use-cases do not allow for bots, so it's supposed to be run in a whatsapp sandbox (Twilio).
Powered by the Twilio whatsapp api, Express.JS for the backend, meme generated by a serverless function from memegen.link (My server is hosted at repl.it, uptimerobot pings it every 55 minutes to prevent it from sleeping)
Make an account at Twilio.com, start a programmable messaging app for whatsapp, set the webhook to your server (with /incoming as the route. You can change this from the server file) Do not forget to add your Auth and Sid from twilio into your .env file (ACCOUNTSID and AUTHTOKEN)
Send a text message to the bot in the format top caption#bottom caption#image link
. The #
is the seperator. For example, https://img-9gag-fun.9cache.com/photo/aKDR333_460s.jpg can be replicated by sending
One does not simply#write a code without a single bug#https://imgflip.com/s/meme/One-Does-Not-Simply.jpg
Just wanted to learn making some twilio apps, also cuz it's fun. Do leave a star if you've read it this far :)