Ropin' in the Herd - Setting Up the Application in Slack
Configure your application within Slack
Now that our digital ranch is set up, we need a trusty messenger to keep us updated - enter Slack!
- Go to Slack API Apps and create a new app.
- Get the following settings:
- Slack Bot Token
- Slack Signing Secret
- Set up the environment variables in Heroku for Slack credentials - the digital equivalent of a sheriff's badge.
❗️Warning: Keep you Slack configuration settings secure.
heroku config:set SLACK_BOT_TOKEN='xoxb-your-bot-token'
heroku config:set SLACK_SIGNING_SECRET='your-signing-secret'- Enable Interactivity & Shortcuts
- Set the Request URL to: https://your-app-name.herokuapp.com/slack/actions
- Enable Event Subscriptions
- Subscribe to the following bot events:
app_mentionsmessage.channelsblock_actions
- Set the Request URL to: https://your-app-name.herokuapp.com/slack/events
- Subscribe to the following bot events:
- Lasso the right permissions and OAuth settings
- Add OAuth Scopes:
chat:writecommandsim:historychannels.history
- Add OAuth Scopes:
- Install the app in your workspace