Name: coc-hotline
Owner: PyOhio
Description: The PyCascades Code of Conduct Hotline
Created: 2018-04-18 02:22:17.0
Updated: 2018-04-18 02:22:19.0
Pushed: 2018-01-19 04:33:56.0
Homepage: null
Size: 20
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The PyCascades Code of Conduct Hotline
Python 3.6+ because F strings are the best strings.
When the hotline is called, it will ring the phones listed in the COC_NUMBERS
env variable.
The caller will be connected to the first person who responds.
At PyCascades, it will also post to a private slack channel so we have a record of who called, who answered, how long was the call, and when.
It is easier to share one consistent phone number to call, as opposed to listing various phone numbers. We can repurpose the same number year after year, and have the flexibility to add/remove people who will answer the call.
pip install -r requirements.txt
to install the dependenciesCOC_NUMBERS
: A comma separated list of phone numbers prefixed with +
, numbers should include country code.COC_HTTP_SCHEME
: either http
or https
, we recommend deploying with AWS Lambda which will provide https for you.COC_SLACK_URL
: (Optional) The WebHook URL provided by the Incoming Webhooks Slack integration.python coc-hotline.py
This tool was built to be run on AWS Lambda, but could easily be adapted to run anywhere you can run Python 3.6+. To deploy to AWS Lambda follow the below instructions:
pip install -r requirements.txt
zappa init
environment_variables
attribute to your zappa config and fill out the environment
variables listed in the installation instructions above.zappa deploy [your environment name here]