-
Notifications
You must be signed in to change notification settings - Fork 3
/
System.js
116 lines (109 loc) · 4.17 KB
/
System.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
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
112
113
114
115
116
const BotConfiguration = require("./BotConfiguration.js");
const chalk = require("chalk");
var BotData = [
BuildID = "2021.08.20.2.3.1",
Version = "2.3.1",
VN = "2.3.1 Patch",//VN stands for Version Name
Developer = "theopcoder"
];
var Errors = [
PermissionError = ":no_entry_sign: You have invalid permissions to perform this command!",
StaffUser = ":warning: You can't perform this command on staff!",
UserAlreadyUnmuted = ":warning: That user is already unmuted!",
DMMessage = ":warning: You can't use this command in DM's!",
UserAlreadyMuted = ":warning: That user is already muted!",
NullUser = ":warning: User not found/mentioned!",
];
var RequiredField = "0";
//Required Fields
if (!BotPrefix){
console.log(`⚠️: ${chalk.red(`BotPrefix is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!LogChannelID){
console.log(`⚠️: ${chalk.red(`LogChannelID is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!MuteRoleID){
console.log(`⚠️: ${chalk.red(`MuteRoleID is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!ModLogID){
console.log(`⚠️: ${chalk.red(`ModLogID is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!MuteBypassProtectionSetting){
console.log(`⚠️: ${chalk.red(`MuteBypassProtectionSetting is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!DeletedMessagesSetting){
console.log(`⚠️: ${chalk.red(`DeletedMessagesSetting is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!DiscordInviteSetting){
console.log(`⚠️: ${chalk.red(`DiscordInviteSetting is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!ChatFilterSetting){
console.log(`⚠️: ${chalk.red(`ChatFilterSetting is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!SuggestionChannelID){
console.log(`⚠️: ${chalk.red(`SuggestionChannelID is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!BugReportChannelID){
console.log(`⚠️: ${chalk.red(`BugReportChannelID is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!PollChannelID){
console.log(`⚠️: ${chalk.red(`PollChannelID is empty! This is a required field!`)}`);
RequiredField = "1";
}
if (!WelcomeChannelID){
console.log(`⚠️: ${chalk.red(`WelcomeChannelID is empty! This is a required field!`)}`);
RequiredField = "1";
}
//Bot Shut off if required fields are left empty
if (RequiredField == "1"){
console.log(chalk.green("You must fill in the required fields before the bot can turn on!"));
process.exit();
}
//Recommended Fields
if (!DeletedMessageLogChannelID){
console.log(`⚠️: ${chalk.yellow(`DeletedMessageLogChannelID is empty! Error's may occur if left empty!`)}`);
}
if (!LevelUpChannelID){
console.log(`⚠️: ${chalk.yellow(`LevelUpChannelID is empty! Error's may occur if left empty!`)}`);
}
if (!LevelUpMoney){
console.log(`⚠️: ${chalk.yellow(`LevelUpMoney is empty! Error's may occur if left empty!`)}`);
}
if (!XPToLevelUp){
console.log(`⚠️: ${chalk.yellow(`XPToLevelUp is empty! Error's may occur if left empty!`)}`);
}
if (!MaxRandomXP){
console.log(`⚠️: ${chalk.yellow(`MaxRandomXP is empty! Error's may occur if left empty!`)}`);
}
if (!DCPPingRoleID){
console.log(`⚠️: ${chalk.yellow(`DCPPingRoleID is empty! Error's may occur if left empty!`)}`);
}
if (!DCPChannelID){
console.log(`⚠️: ${chalk.yellow(`DCPChannelID is empty! Error's may occur if left empty!`)}`);
}
if (!DCPTime){
console.log(`⚠️: ${chalk.yellow(`DCPTime is empty! Error's may occur if left empty!`)}`);
}
if (!NewMemberRoleID){
console.log(`⚠️: ${chalk.yellow(`NewMemberRoleID is empty! Error's may occur if left empty!`)}`);
}
//Optional Fields
if (!ActivityMessage){
console.log(`⚠️: ${chalk.blue(`ActivityMessage is empty. This is an optional field.`)}`);
}
if (!WelcomeMessage){
console.log(`⚠️: ${chalk.blue(`WelcomeMessage is empty. This is an optional field.`)}`);
}
if (!SuggestionPingRoleID){
console.log(`⚠️: ${chalk.blue(`SuggestionPingRoleID is empty. This is an optional field.`)}`);
}