-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
40 lines (35 loc) · 1.32 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
import dotenv from "dotenv";
dotenv.config();
// This is for testing purposes
const defaultTextCh = process.env.CH_TESTING;
export const channels = {
bans: {
priv: defaultTextCh || process.env.CH_BANS_PRIV || "995520998554218557",
pub: defaultTextCh || process.env.CH_BANS_PUB || "995387208947204257",
},
commands: {
priv: defaultTextCh || process.env.CH_CMDS_PRIV || "995520998554218557",
pub: defaultTextCh || process.env.CH_CMDS_PUB || "995387208947204257",
},
join: {
priv: defaultTextCh || process.env.CH_JOIN_PRIV || "995521059119960144"
}
};
export const logs = {
bans: process.env.LOGS_BANS || "logs/banlist_info.log",
commands: process.env.LOGS_CMDS || "logs/ra_adminlog.txt",
joins: process.env.LOGS_JOIN || "logs/joinlog.log",
tickets: process.env.LOGS_TICKETS || "logs/tickets.log",
};
const serverDir = process.env.PRBF2_SV_DIR;
export default {
timezone: process.env.TZ || "+02:00",
serverDir: serverDir,
prspySvID: process.env.PRSPY_SV_ID,
bf2DemosDir: process.env.BF2_DEMOS_DIR || `${serverDir}/mods/pr/demos/`,
prDemosDir: process.env.PR_DEMOS_DIR || `${serverDir}/demos/`,
chatlogsDir: process.env.CHATLOGS_DIR || `${serverDir}/admin/logs/`,
jsonDir: process.env.JSON_DIR || `${serverDir}/json/`,
channels,
logs,
};