Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #465 from jonchurch/patch-1
Browse files Browse the repository at this point in the history
Update slackbutton_bot.js example
  • Loading branch information
Ben Brown authored Nov 7, 2016
2 parents b6a8a2e + 00d1ba0 commit 8a5e0ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/slackbutton_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ This is a sample Slack Button application that adds a bot to one or many slack t
/* Uses the slack button feature to offer a real time bot to multiple teams */
var Botkit = require('../lib/Botkit.js');

if (!process.env.clientId || !process.env.clientSecret || !process.env.port) {
console.log('Error: Specify clientId clientSecret and port in environment');
if (!process.env.clientId || !process.env.clientSecret || !process.env.port || !process.env.redirectUri) {
console.log('Error: Specify clientId clientSecret redirectUri and port in environment');
process.exit(1);
}

Expand All @@ -39,6 +39,7 @@ var controller = Botkit.slackbot({
{
clientId: process.env.clientId,
clientSecret: process.env.clientSecret,
redirectUri: process.env.redirectUri,
scopes: ['bot'],
}
);
Expand Down

0 comments on commit 8a5e0ca

Please sign in to comment.