Skip to content

JeswinSunsi/WhatsappMemeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Whatsapp Meme Generator Bot

A simple meme generator bot for Whatsapp.

Disclaimer

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).

The Stack

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)

How to make it work

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)

The syntax to making memes

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

Why

Just wanted to learn making some twilio apps, also cuz it's fun. Do leave a star if you've read it this far :)

About

A simple meme generator bot for Whatsapp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published