This code is loosely based on https://github.com/mattmakai/slack-starterbot and code the Mozilla Operations Center was already using to interact with PagerDuty.
To install:
- copy
config.yml.disttoconfig.yml - edit
config.ymlto suit. At a minimum you need:- your Slack API key
- your PagerDuty API key
- the schedule ID and escalation policy ID that you wish to grab the oncall from (you need both for it to be accurate)
virtualenv envsource env/bin/activatepip install -r requirements.txt