-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
49 lines (45 loc) · 866 Bytes
/
config.ts
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
import { config } from "dotenv";
config();
export type JuanitaConfig = {
app: {
token: string | undefined;
playing: string;
global: boolean;
guild: string | undefined;
};
opt: {
maxVol: number;
leaveOnEnd: boolean;
loopMessage: boolean;
spotifyBridge: boolean;
defaultvolume: number;
discordPlayer: {
ytdlOptions: {
quality: string;
highWaterMark: number;
};
};
};
};
const envConfig: JuanitaConfig = {
app: {
token: process.env.BOT_TOKEN,
playing: "Joe Mama❤️",
global: process.env.DEV !== "true",
guild: process.env.DEV ? process.env.DEV_GUILD: undefined,
},
opt: {
maxVol: 100,
leaveOnEnd: true,
loopMessage: false,
spotifyBridge: true,
defaultvolume: 50,
discordPlayer: {
ytdlOptions: {
quality: "highestaudio",
highWaterMark: 1 << 25,
},
},
},
};
export default envConfig;