Slack app example from 📚 Getting started with Bolt for JavaScript tutorial
This is a Slack app built with the Bolt for JavaScript framework that showcases responding to events and interactive buttons.
- Go to https://api.slack.com/apps
- Click Create App
- Choose a workspace
- Enter App Manifest using contents of
manifest.yaml
- Click Create
Once the app is created click Install to Workspace Then scroll down in Basic Info and click Generate Token and Scopes with both scopes
# Replace with your bot and app token
export SLACK_BOT_TOKEN=<your-bot-token> # from the OAuth section
export SLACK_APP_TOKEN=<your-app-level-token> # from the Basic Info App Token Section
# Clone this project onto your machine
git clone https://github.com/slackapi/bolt-js-getting-started-app.git
# Change into the project
cd bolt-js-getting-started-app/
# Install the dependencies
npm install
npm run start
Go to the installed workspace and type Hello in a DM to your new bot. You can also type Hello in a channel where the bot is present
Found a bug or have a question about this project? We'd love to hear from you!
- Browse to slackapi/bolt-js/issues
- Create a new issue
- Select the
[x] examples
category
See you there and thanks for helping to improve Bolt for everyone!