Incident management.. all within Slack – /incident
- Request an invite to the Slack Bot Testing Grounds workspace & a copy of the secrets for your
.env
file - Visit https://api.slack.com/apps and select DfE incident bot (test)
- Spin up a ngrok tunnel with
ngrok http 3000
and take a copy of the forwarding URL - Navigate to Interactivity & Shortcuts and add the following URL to Request URL:
- Navigate to Slash Commands and add the following URL to the four slash commands:
- Navigate to OAuth & Permissions and add the following URL to Redirect URLS:
- Update your
.env
file with the following URLs:
BASE_URL=https://example.ngrok.io
ENV_URL=example.ngrok.io
- Launch your rails server and test the connection in Slack with
/ping
BASE_URL stands for https://your-slackbot-hosted-domain.com hereafter
- Create a new app here
- Navigate to the OAuth & Permissions page and add the following Bot Token Scopes:
channels:manage
channels:read
chat:write
commands
group:read
incoming-webhook
pins:write
team:read
users:read
- Activate Interactivity & Shortcuts and add this url:
BASE_URL/api/slack/action
- Activate OAuth & Permissions and add
BASE_URL
to the Redirect URLs - Activate Slash Commands add two slash commands, using
BASE_URL/api/slack/command
as the Request URL:
/ping
/incident
- add:[ open | update | close | help ]
to the usage hint field
- Grab the information needed for .env file from Basic Information section
- Navigate to the App Home page and toggle Always Show My Bot as Online (according to your reference)