This repository has been archived by the owner on Oct 14, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.ts.example
55 lines (50 loc) · 1.6 KB
/
config.ts.example
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
// Remove `.example` from the file extension to configure Aelia
import { KlasaClientOptions } from 'klasa';
// eslint-disable-next-line no-process-env
export const DEV = 'DEV' in process.env ? process.env.DEV === 'true' : !('PM2_HOME' in process.env);
export const EVLYN_PORT = 3100;
export const CLIENT_OPTIONS: KlasaClientOptions = {
commandEditing: true,
commandMessageLifetime: 200,
console: { useColor: true, utc: true },
consoleEvents: { verbose: true },
createPiecesFolders: false,
customPromptDefaults: { limit: 5 },
dev: DEV,
disabledEvents: [
'GUILD_BAN_ADD',
'GUILD_BAN_REMOVE',
'TYPING_START',
'CHANNEL_PINS_UPDATE',
'PRESENCE_UPDATE',
'USER_UPDATE'
],
lavalink: {
hosts: {
rest: 'http://IP:REST_PORT',
ws: 'ws://IP:WS_PORT'
},
password: 'PASSWORD',
userID: 'USER_ID'
},
messageCacheLifetime: 300,
messageCacheMaxSize: 50,
messageSweepInterval: 120,
pieceDefaults: {
commands: { deletable: true, promptLimit: 5, quotedStringSupport: true },
ipcMonitors: { enabled: true },
monitors: { ignoreOthers: false }
},
prefix: DEV ? 'md.' : 'm.',
presence: { activity: { name: DEV ? 'md.help' : 'Aelia, help', type: 'LISTENING' } },
readyMessage: client =>
`Aelia 4.1.0 ready! [${client.user!.tag}] [ ${client.guilds.size} [G]] [ ${client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString()} [U]].`,
regexPrefix: DEV ? undefined : /^(hey[ ]+)?(ruby|aelia)[,! ]/i,
slowmode: 1000,
slowmodeAggressive: true,
typing: true
};
export const TOKEN = DEV
? 'DEVELOPMENT BOT TOKEN'
: 'PRODUCTION BOT TOKEN';
export const GOOGLE_SEARCH_TOKEN = 'GOOGLE SEARCH TOKEN';