-
Notifications
You must be signed in to change notification settings - Fork 9
/
config-template.js
63 lines (51 loc) · 1.57 KB
/
config-template.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
51
52
53
54
55
56
57
58
59
60
61
62
63
const { NODE_ENV } = process.env || 'dev';
const envConfig = {
prod: null, // Same structure as dev config but you probably want different values
dev: {
tokens: {
discord: 'abc123', // Discord bot token
tmdb: 'abc123', // TMDb API token https://www.themoviedb.org/documentation/api
},
db: {
host: 'localhost',
port: 27017,
name: 'dmdb',
options: {
useUnifiedTopology: true,
useNewUrlParser: true,
auth: { authSource: 'admin' },
user: 'admin',
pass: 'devpass', // Database password
},
},
},
};
export default {
env: NODE_ENV,
...envConfig[NODE_ENV],
list: false, // Configs for bot list sites
client: {
autoreconnect: true,
maxShards: 1, // Discord requires a new instance for every 2500 guilds
messageLimit: 50,
disableEveryone: true,
// These disabled events help improve performance
disableEvents: {
TYPING_START: true,
VOICE_STATE_UPDATE: true,
MESSAGE_DELETE: true,
MESSAGE_DELETE_BULK: true,
PRESENCE_UDPATE: true,
MESSAGE_PIN: true,
MESSAGE_UNPIN: true,
},
},
prefix: '!?',
developers: ['612086654454333462'], // Snowflakes of users who have access to developer features
// API wrapper settings
wrapper: {
custom_id: true,
results_per_page: 5,
always_use_results: true,
},
};