Adapted from https://blog.logrocket.com/build-a-slackbot-in-node-js-with-slacks-bolt-api/
- Clone this repo
- Create a new slack workspace for testing
- Create a new slack app > Create New App
- Use manifest method
- Upload the
./manifest.json
file in this repo - Select the workspace you made above
- Install slack app to workspace
- Populate
.env
file variables
SLACK_BOT_OAUTH_TOKEN
- Left Nav > Features > OAuth & Permissions
- Copy token from
OAuth Tokens for Your Workspace
SLACK_SIGNING_SECRET
- Left Nav > Settings > Basic Information
- Copy token from
App Credentials Section
SLACK_APP_LEVEL_TOKEN
- Left Nav > Settings > Basic Information > Generate App Level Token:
- Name:
SocketMode
- Add Scope:
connections:write
andauthorizations:read
- Name:
- Copy token after token creation
- Left Nav > Settings > Basic Information > Generate App Level Token:
- Reinstall app if prompted
yarn install
dependenciesyarn build
buildyarn dev
run server
- Hackathon Deck: https://docs.google.com/presentation/d/1zN3z90KPaRc94HFefvezWxCt0bEtOIWELsBEWTbp3GQ/edit?usp=sharing
- In Depth Guide: https://blog.logrocket.com/build-a-slackbot-in-node-js-with-slacks-bolt-api/
- Boilerplate Repo: https://github.com/QuantumMob/hackathon-2022-slackbot
- Slack api home: https://api.slack.com/apps/
- Slack bolt reference: https://slack.dev/bolt-js/concepts