Browse Source

fix missing_scope error

because slack is now prevent an owner's token.
close #8
Outsider 9 years ago
parent
commit
42462c2cdf
2 changed files with 5 additions and 1 deletions
  1. 3 1
      README.md
  2. 2 0
      config.js

+ 3 - 1
README.md

@@ -16,7 +16,9 @@ fill out `config.js` as your infomation.
 * `community`: your community or team name to display on join page.
 * `slackUrl` : your slack team url (ex: socketio.slack.com)
 * `slacktoken` : access token of slack.
-  You can generate it in <https://api.slack.com/web#auth>
+  You can generate it in <https://api.slack.com/web#auth>.
+  **You should generate the token in admin user, not owner.**
+  If you generate the token in owner user, `missing_scope` error will be occurred.
 
   You can test your token via curl:
 

+ 2 - 0
config.js

@@ -5,6 +5,8 @@ module.exports = {
   slackUrl: process.env.SLACK_URL || 'YOUR-TEAM.slack.com',
   // access token of slack
   // You can generate it in https://api.slack.com/web#auth
+  // You should generate the token in admin user, not owner.
+  // If you generate the token in owner user, missing_scope error will be occurred.
   //
   // You can test your token via curl:
   //   curl -X POST 'https://YOUR-SLACK-TEAM.slack.com/api/users.admin.invite' \