Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 689 Bytes

File metadata and controls

32 lines (19 loc) · 689 Bytes

Text Vote

Python Script to build voting results from text messages

Dependencies

It's recommended to use a virtual environment

Install with pip

twilio

flask

Set the environment variables

INTRANET_URL

INTRANET_TOKEN

Running

Run the script normally with python TextVote.py

In a separate terminal, download and install ngrok to expose the python server to the web.

brew cask install ngrok

Then run ngrok

ngrok http 5000

Enter the forwarding URL from ngrok as a web hook URL for you Twilio number as defined here