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

Commit

Permalink
Also keep app access_token
Browse files Browse the repository at this point in the history
Not only save bot token but also app access token as some calls need it and it can have different permissions
  • Loading branch information
PanMan authored Sep 8, 2016
1 parent 354a917 commit 5fc0dff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/SlackBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ function Slackbot(configuration) {
token: auth.bot.bot_access_token,
user_id: auth.bot.bot_user_id,
createdBy: identity.user_id,
app_token: auth.access_token,
};
bot.configureRTM(team.bot);
slack_botkit.trigger('create_bot', [bot, team.bot]);
Expand Down

0 comments on commit 5fc0dff

Please sign in to comment.