From 5fc0dff9cc70f844fb25458706f57d74aa57e06e Mon Sep 17 00:00:00 2001 From: PanMan Date: Thu, 8 Sep 2016 16:11:19 +0200 Subject: [PATCH] Also keep app access_token Not only save bot token but also app access token as some calls need it and it can have different permissions --- lib/SlackBot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/SlackBot.js b/lib/SlackBot.js index 81a2318c1..fdb437a93 100755 --- a/lib/SlackBot.js +++ b/lib/SlackBot.js @@ -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]);