blob: ae34ff7d9597b773dd9344d0d9562759fa44cbe6 [file] [log] [blame]
TheCodedProf83311512023-06-11 13:54:50 -04001interface config {
2 developmentToken: string;
3 developmentGuildID: string;
4 enableDevelopment: boolean;
5 token: string;
6 managementGuildID: string;
7 owners: string[];
8 commandsFolder: string;
9 eventsFolder: string;
10 messageContextFolder: string;
11 userContextFolder: string;
12 verifySecret: string;
13 mongoOptions: {
14 username: string;
15 password: string;
16 database: string;
17 host: string;
18 authSource: string;
19 };
20 baseUrl: string;
21 clamav: {
22 socket?: string;
23 host?: string;
24 port?: number;
25 };
26 githubPAT: string;
27 suggestionChannel: string;
28};
29
30export default {
31 "token": process.env["TOKEN"]!,
32 "developmentToken": process.env["DEV_TOKEN"]!,
33 "managementGuildID": process.env["MANAGEMENT_GUILD_ID"]!,
34 "developmentGuildID": process.env["DEV_GUILD_ID"]!,
35 "enableDevelopment": process.env["ENABLE_DEV"] === "true",
36 "owners": process.env["OWNERS"]?.split(","),
37
38 "commandsFolder": process.env["COMMANDS_FOLDER"] ?? "dist/commands",
39 "eventsFolder": process.env["EVENTS_FOLDER"] ?? "dist/events",
40 "messageContextFolder": process.env["MESSAGE_CONTEXT_FOLDER"] ?? "dist/context/messages",
41 "userContextFolder": process.env["USER_CONTEXT_FOLDER"] ?? "dist/context/users",
42
43 "verifySecret": process.env["VERIFY_SECRET"]!,
44 "mongoOptions": {
45 "username": process.env["MONGO_USERNAME"]!,
46 "password": process.env["MONGO_PASSWORD"]!,
47 "host": process.env["MONGO_HOST"]!,
48 "database": process.env["MONGO_DATABASE"]!,
49 "authSource": process.env["MONGO_AUTH_SOURCE"]!,
50 },
51 "baseUrl": process.env["BASE_URL"]!,
52 "clamav": {
53 "host": process.env["CLAMAV_HOST"]!,
54 "port": parseInt(process.env["CLAMAV_PORT"] ?? "3310")
55 },
56 "githubPAT": process.env["GITHUB_PAT"]!,
57 "suggestionChannel": process.env["SUGGESTION_CHANNEL"]!,
58} as config;