forked from outsideris/slack-invite-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
21 lines (20 loc) · 1002 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
// your community or team name to display on join page.
community: process.env.COMMUNITY_NAME || 'jointdeveloper',
// your slack team url (ex: socketio.slack.com)
slackUrl: process.env.SLACK_URL || 'jointdeveloper.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' \
// --data 'email=EMAIL&token=TOKEN&set_active=true' \
// --compressed
slacktoken: process.env.SLACK_TOKEN ||
'xoxp-18545223009-153027586451-153788632567-80549ff74c226cde22d47c8ae30fd157',
// an optional security measure - if it is set, then that token will be required to get invited.
inviteToken: process.env.INVITE_TOKEN || 'null',
locale: process.env.LOCALE || 'es'
};