forked from Emy/crim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
181 lines (168 loc) · 4.53 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
const config = require('./config.json')
exports.config = {
/**
* General Options
*/
ownerID: config.ownerID,
// Disables/Enables a process.on('unhandledRejection'...) handler
production: false,
// The default language that comes with klasa. More base languages can be found on Klasa-Pieces
language: 'en-US',
// The default configurable prefix for each guild
prefix: '!',
// If custom configs should be preserved when a guild removes your bot
preserveConfigs: true,
// If your bot should be able to mention @everyone
disableEveryone: false,
// Whether d.js should queue your rest request in 'sequential' or 'burst' mode
apiRequestMethod: 'sequential',
// The time in ms to add to ratelimits, to ensure you wont hit a 429 response
restTimeOffset: 500,
// Any Websocket Events you don't want to listen to
disabledEvents: [],
// A presence to login with
presence: {},
// A once ready message for your console
readyMessage: (client) => `Successfully initialized. Ready to serve ${client.guilds.size} guild${client.guilds.size === 1 ? '' : 's'}.`,
/**
* Caching Options
*/
fetchAllMembers: false,
messageCacheMaxSize: 200,
messageCacheLifetime: 0,
commandMessageLifetime: 1800,
// The above 2 options are ignored while the interval is 0
messageSweepInterval: 0,
/**
* Sharding Options
*/
shardId: 0,
shardCount: 0,
/**
* Command Handler Options
*/
commandEditing: false,
commandLogging: false,
typing: false,
/**
* Database Options
*/
providers: {
/*
// Provider Connection object for process based databases:
// rethinkdb, mongodb, mssql, mysql, postgresql
*/
// rethinkdb: {
// db: 'emybot',
// silent: false
// },
default: 'json'
},
/**
* Custom Prompt Defaults
*/
customPromptDefaults: {
time: 30000,
limit: Infinity,
quotedStringSupport: false
},
/**
* Klasa Piece Defaults
*/
pieceDefaults: {
commands: {
aliases: [],
autoAliases: true,
bucket: 1,
cooldown: 0,
description: '',
enabled: true,
guarded: false,
nsfw: false,
permissionLevel: 0,
promptLimit: 0,
promptTime: 30000,
requiredConfigs: [],
requiredPermissions: 0,
runIn: ['text', 'dm', 'group'],
subcommands: false,
usage: '',
quotedStringSupport: false,
deletable: false
},
events: {
enabled: true,
once: false
},
extendables: {
enabled: true,
klasa: false,
appliesTo: []
},
finalizers: { enabled: true },
inhibitors: {
enabled: true,
spamProtection: false
},
languages: { enabled: true },
monitors: {
enabled: true,
ignoreBots: true,
ignoreSelf: true,
ignoreOthers: true,
ignoreWebhooks: true,
ignoreEdits: true
},
providers: {
enabled: true,
sql: false,
cache: false
},
tasks: { enabled: true }
},
/**
* Console Event Handlers (enabled/disabled)
*/
consoleEvents: {
debug: false,
error: true,
log: true,
verbose: false,
warn: true,
wtf: true
},
/**
* Console Options
*/
console: {
// Alternatively a Moment Timestamp string can be provided to customize the timestamps.
timestamps: true,
utc: false,
colors: {
debug: { time: { background: 'magenta' } },
error: { time: { background: 'red' } },
log: { time: { background: 'blue' } },
verbose: { time: { text: 'gray' } },
warn: { time: { background: 'lightyellow', text: 'black' } },
wtf: { message: { text: 'red' }, time: { background: 'red' } }
}
},
/**
* Custom Setting Gateway Options
*/
gateways: {
guilds: {},
users: {},
clientStorage: {},
},
/**
* Klasa Schedule Options
*/
schedule: { interval: 60000 }
};
/**
* Lavalink Nodes
*/
exports.nodes = config.nodes;
// The token for this bot to login with
exports.token = config.discordToken;