WhatsApp bot powered by Twilio API to get through the quarantine. Latest COVID19 statistics, world news, inspirational quotes and cat photos.
Read my tutorial here!
- Clone this repository and deploy it on any Django-friendly hosting service like PythonAnywhere. Use
$ pip install -r requirements.txt
to install the program dependencies. - Create a free Twilio account and setup the WhatsApp sandbox here
- Under Sandbox Configuration, set the webhook for 'WHEN A MESSAGE COMES IN' to e.g. http://zeyu2001.pythonanywhere.com/bot/ depending on where you host the webhook. Remember the relative url bot/. Set the request method to HTTP POST.
- Click save, and send 'hello' to the Twilio bot!
Simply type 'Hello' for a list of commands you can use.