-
Notifications
You must be signed in to change notification settings - Fork 5
/
defaults.js
40 lines (35 loc) · 930 Bytes
/
defaults.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'use strict'
const admins = process.env.BOT_ADMINS.split(',');
if (admins[0] === '') {
console.error('[WARNING] No admin specificed under `BOT_ADMINS`!');
}
const currency = {
name: 'dime',
plural: 'dimes',
emoji: ':dime:',
milestone: 100,
};
const config = {
currency,
messages: {
balance: `You have %count% ${currency.emoji}!`,
milestone: `${currency.emoji} *Congratulations* to %name% for reaching *%count% ${currency.plural}*! Keep up the good work!`,
scoreboard: `%user% %count% ${currency.emoji}\n`,
},
env: process.env.NODE_ENV || 'development',
port: process.env.PORT || 3000,
bot: {
engine: process.env.BOT_ENGINE,
accessToken: process.env.BOT_TOKEN,
signingSecret: process.env.BOT_SIGNING_SECRET,
milestoneChannel: process.env.BOT_PRAISE_CHANNEL,
},
logger: {
format: 'tiny',
options: {}
},
admin: {
users: admins
},
}
module.exports = config