Skip to content

Commit

Permalink
updated custom_routes doc based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengill committed Jun 13, 2020
1 parent fbc8060 commit 07dfd66
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/_advanced/custom_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ Adding custom HTTP routes is quite straightforward when using Bolt's built-in `E
const { App, ExpressReceiver } = require('@slack/bolt');

// Create a Bolt Receiver
const receiver = new ExpressReceiver({ signingSecret: '' });
const receiver = new ExpressReceiver({ signingSecret: process.env.SLACK_SIGNING_SECRET });

// Create the Bolt App, using the receiver
const app = new App({ token: '', receiver });
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
receiver
});

// Slack interactions are methods on app
app.event('message', async ({ event, client }) => {
Expand Down

0 comments on commit 07dfd66

Please sign in to comment.