Set the following environment variables:
export SLACK_WEBHOOK_URL="https://hooks.slack.com/..."
export SLACK_WEBHOOK_TOKEN="..."
You will find the Webhook URL in the Setup Instructions section of the Incoming WebHooks section of your Slack Integration.
You will find the Webhook Token in the Setup Instructions section of the Outcoming WebHooks section of your Slack Integration.
Set up a Heroku app and set up the environment variables above with:
heroku config:set SLACK_WEBHOOK_URL="https://hooks.slack.com/..."
heroku config:set SLACK_WEBHOOK_TOKEN="..."
If you are lucky, you are already on admin of the foghorn-slack app,
so you don't have to create a new one! Just add that as a remote, then
run git push heroku master.
- Create a new file under
app/models/responsefollowing the line of the existing ones - Add in the
Request#responsemethod the condition under which the new response should be used