Meme server using Twilio and PRAW
Usecase
- Just send a message to the Twilio Number asking for memes, Eg: "Meme me!"
- Since I'm currently using a Trial account, the app only works for my number :)
- install requirements using
pip install -r requirements.txt
-
create a Twilio account
-
Buy a Number
-
register an application on reddit
-
export the necessary env variables in your terminal instance:
export TWILIO_ACCOUNT_SID="xyz"
...
It's better to store all your environment variables into a .env or .flaskenv file so you don't have to export env variables every time you reopen the terminal
-
Click on your active number and under "Messaging" configure the webhook for "When a Message comes in", to point to you application. The webhook won't be able to locate your localhost, so either expose it using ngrok, or host the app on heroku, and provide that link here.
-
Send a message to your Twilio Number from your number (which you used to register, if you're using a Trial account)