forked from brandonapt/roblox-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
111 lines (107 loc) · 2.82 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import BotConfig from "./utils/interfaces/BotConfig";
require('dotenv').config();
export const envValues = ["DISCORD_TOKEN", "ROBLOX_USERNAME", "ROBLOX_PASSWORD", "ROBLOX_COOKIE", "ROBLOX_API_KEY", "ROVER_API_KEY"];
for(let i = 0; i < envValues.length; i++) {
if(!process.env[envValues[i]]) {
console.log(`${envValues[i]} not defined in .env file`);
process.exit(1);
}
}
const config: BotConfig = {
DISCORD_TOKEN: process.env.DISCORD_TOKEN,
ROBLOX_USERNAME: process.env.ROBLOX_USERNAME,
ROBLOX_PASSWORD: process.env.ROBLOX_PASSWORD,
ROBLOX_COOKIE: process.env.ROBLOX_COOKIE,
ROBLOX_API_KEY: process.env.ROBLOX_API_KEY,
ROVER_API_KEY: process.env.ROVER_API_KEY,
groupIds: [],
permissions: {
all: [""],
group: {
shout: [""],
ranking: [""],
joinrequests: [""],
user: [""],
xp: [""],
wall: [""]
},
game: {
general: [""],
broadcast: [""],
kick: [""],
ban: [""],
shutdown: [""],
datastore: [""],
execution: [""],
jobIDs: [""],
lock: [""],
mute: [""]
}
},
antiAbuse: {
enabled: true,
thresholds: {
ranks: 10,
exiles: 5
},
actions: {
ranks: "Suspend",
exiles: "Exile"
}
},
xpSystem: {
enabled: false,
rewards: [], // Format is [{rewardID: string, rank: {groupId: number, rankName: string}, xpNeeded: number}] ; EX: [rewardID: "activeMemberReward", rank: {groupId: 253, rankName: "Developer"}, xpNeeded: 1000]
earnings: {
messages: 2,
reactions: 1
}
},
counting: {
enabled: false,
goal: 0,
loggingChannel: ""
},
logging: {
audit: {
enabled: true,
loggingChannel: ""
},
shout: {
enabled: true,
loggingChannel: ""
},
command: {
enabled: true,
loggingChannel: ""
},
antiAbuse: {
enabled: true,
loggingChannel: ""
},
sales: {
enabled: true,
loggingChannel: ""
},
xp: {
enabled: true,
loggingChannel: ""
}
},
embedColors: {
info: "Blue",
success: "Green",
error: "Red"
},
defaultCooldown: 5000,
cooldownOverrides: {}, // Format: {"command name": cooldownInMilliSeconds} ; EX: {"exile": 20000}
suspensionRank: 0,
universes: [],
datastoreName: "moderations",
verificationChecks: true,
collectorTime: 120000,
maximumNumberOfUsers: 5,
lockedRanks: [],
lockedCommands: [],
}
export default config;