A framework to build Slack apps, fast.
- Features > OAuth & Permissions:
- Scopes:
- "channels:history"
- "chat:write:bot"
- "bot"
- Click "Save Changes"
- Scopes:
- Features > Bot User:
- Click "Add a Bot User"
- Click "Add Bot User"
- Settings > Install App:
- Complete "Install App"
export SLACK_SIGNING_SECRET=abcd1234567890123456789012345678
export SLACK_BOT_TOKEN=xoxb-123456789012-123456789012-abcd12345678901234567890
export DEBUG=1
npm run local
- Set env variables on Heroku
- (Slack) Settings > Basic Information > App Credentials > Siginging Secret
- (Slack) Settings > Install App > Bot User OAuth Access Token
- Features > Event Subscriptions:
- Enable Events:
- Change from "Off" to "On"
- Request URL:
- Set "https://{your app name}.herokuapp.com/slack/events"
- Subscribe to Workspace Events:
- Add "message.channels"
- Click "Save Changes"
- Enable Events:
- Invite your bot to a Slack channel
- Post "hello" in the channel
- You'll receive a response from the bot