2018-10-11 02:02:57 +03:00
|
|
|
# netops-slackbot
|
|
|
|
|
|
|
|
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.
|
2018-10-11 22:39:19 +03:00
|
|
|
|
|
|
|
To install:
|
|
|
|
|
|
|
|
* copy `config.yml.dist` to `config.yml`
|
|
|
|
* edit `config.yml` to suit. At a minimum you need:
|
2018-10-11 22:42:46 +03:00
|
|
|
* 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)
|
2018-10-11 22:39:19 +03:00
|
|
|
* `virtualenv env`
|
|
|
|
* `source env/bin/activate`
|
|
|
|
* `pip install -r requirements.txt`
|