-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
50 lines (41 loc) · 1.04 KB
/
config.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
41
42
43
44
45
46
47
48
49
50
// SERVER CONFIGS
var getConfig = function(config) {
var reload = require('require-reload')(require),
path = require('path'),
fPath = './configs/' + config + '.js';
delete require.cache[path.resolve(fPath)];
return reload(fPath);
};
module.exports = {
env: process.env.NODE_ENV,
port: process.env.APP_PORT,
folders: getConfig('folders'),
files: getConfig('files'),
db: getConfig('db'),
scheduled: getConfig('scheduled'),
websocket: getConfig('websocket'),
privileges: function() { return getConfig('privileges'); },
numbers: getConfig('numbers'),
prices: getConfig('prices'),
enums: getConfig('enums'),
messages: function() { return getConfig('messages'); },
methods: getConfig('methods'),
stringAlias: function() { return getConfig('string_alias'); },
specialStrings: {
abbreviator: '[...]'
},
names: {
credits: {
name: 'Deckels',
sign: 'D$'
}
},
properties: {
actionCost: {
invites: "costInvites",
postIntel: "costPostIntel",
buyPrestige: "costBuyPrestige",
upgradeSize: "costUpgradeSize"
}
}
};