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