Skip to content

Commit bb4b390

Browse files
committed
Modified Server Rules
1 parent 5a486c8 commit bb4b390

File tree

1 file changed

+57
-55
lines changed

1 file changed

+57
-55
lines changed

src/main/java/me/TechsCode/TechDiscordBot/module/cmds/RulesCommand.java

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public void onCommand(TextChannel channel, Member member, SlashCommandEvent e) {
7171

7272
public void showAll() {
7373
showTOS();
74-
showRules();
74+
showRules_Section1();
75+
showRules_Section2();
76+
showRules_Section3();
7577
showNote();
7678
showRoles();
7779
}
@@ -85,39 +87,64 @@ public void showTOS() {
8587
.queue(OVERVIEW_CHANNEL.query().first());
8688
}
8789

88-
public void showNote() {
89-
new TechEmbedBuilder()
90-
.text("**PLEASE NOTE**: Staff do reserve the right to punish for things not listed on this list under the staff's discretion. Please use common sense, and if you are unsure about anything, please ask.")
90+
public void showRules_Section1() {
91+
new TechEmbedBuilder("Section 1 - Text & Voice Chat")
92+
.text("**`Article 1.1`**\n" +
93+
"Attempting to bypass any blocked words or links may result in punishments.\n" +
94+
"**`Article 1.2`**\n" +
95+
"Hate speech is strictly prohibited.\n" +
96+
"**`Article 1.3`**\n" +
97+
"NSFW (Not safe for work) is strictly prohibited, resulting in heavy punishments.\n" +
98+
"**`Article 1.4`**\n" +
99+
"Repeating a message five or more times will be classified as spam and prohibited.\n" +
100+
"**`Article 1.5`**\n" +
101+
"Disrespectful, malicious, and harmful messages are strictly prohibited, resulting in heavy punishments.\n" +
102+
"**`Article 1.6`**\n" +
103+
"Mentioning a member then deleting your message is prohibited and may result in punishments.\n" +
104+
"**`Article 1.7`**\n" +
105+
"Mass mentioning users is prohibited and will result in punishments.\n" +
106+
"**`Article 1.8`**\n" +
107+
"Providing any kind of supports to any of Tech's plugins to unverified members is strictly prohibited.")
108+
.thumbnail("https://i.imgur.com/SfFEnoU.png")
91109
.queue(OVERVIEW_CHANNEL.query().first());
92110
}
93111

94-
public void showRules() {
95-
StringBuilder sBuilder = new StringBuilder();
96-
97-
List<String> embeds = new ArrayList<>();
98-
99-
int i = 0;
100-
for(Rule rule : Rule.values()) {
101-
if((sBuilder.length() + (i == 0? "" : "\n\n") + "- " + rule.getDescription()).length() > 2048) {
102-
i = 0;
103-
embeds.add(sBuilder.toString());
104-
sBuilder = new StringBuilder();
105-
}
106-
107-
sBuilder.append(i == 0 ? "" : "\n\n").append("- ").append(rule.getDescription());
108-
109-
i++;
110-
}
112+
public void showRules_Section2() {
113+
new TechEmbedBuilder("Section 2 - Advertising")
114+
.text("**`Article 2.1`**\n" +
115+
"Advertising anywhere other than your about me and status is prohibited and will result in punishments.\n" +
116+
"**`Article 2.2`**\n" +
117+
"DM Advertising is strictly prohibited and will result in heavy punishments. If a Tech's Plugin Support member directly messages you an advertisement, please create a ticket to report them.\n" +
118+
"**`Article 2.3`**\n" +
119+
"Advertising content such as scams, malware, or NSFW is strictly prohibited and will result in your account being banned.")
120+
.thumbnail("https://i.imgur.com/SfFEnoU.png")
121+
.queue(OVERVIEW_CHANNEL.query().first());
122+
}
111123

112-
if(embeds.size() == 0) embeds.add(sBuilder.toString());
124+
public void showRules_Section3() {
125+
new TechEmbedBuilder("Section 3 - Other")
126+
.text("**`Article 3.1`**\n" +
127+
"Inappropriate usernames and nicknames are prohibited and result in punishments.\n" +
128+
"**`Article 3.2`**\n" +
129+
"Using leaked or cracked copies of any resource are prohibited and result in heavy punishments.\n" +
130+
"**`Article 3.3`**\n" +
131+
"Using or creating a modified version of premium resources is prohibited, resulting in heavy punishments.\n" +
132+
"**`Article 3.4`**\n" +
133+
"Asking for the staff or other particular roles is prohibited and will result in punishments.\n" +
134+
"**`Article 3.5`**\n" +
135+
"Promoting the use of leaked or cracked resources are strictly prohibited, resulting in heavy punishments.\n" +
136+
"**`Article 3.6`**\n" +
137+
"Inviting or having alternative Discord accounts in this server may result in all of your accounts getting banned unless an Assistant or higher grants permission.\n" +
138+
"**`Article 3.7`**\n" +
139+
"Sharing another user's Personal Identifiable Information (\"PII\") without express permission from them is strictly prohibited and will result in heavy punishments.")
140+
.thumbnail("https://i.imgur.com/SfFEnoU.png")
141+
.queue(OVERVIEW_CHANNEL.query().first());
142+
}
113143

114-
i = 0;
115-
for(String s : embeds) {
116-
new TechEmbedBuilder(i == 0 ? "Rules" : null, false)
117-
.text(s)
118-
.queue(OVERVIEW_CHANNEL.query().first());
119-
i++;
120-
}
144+
public void showNote() {
145+
new TechEmbedBuilder()
146+
.text("**PLEASE NOTE**: Staff do reserve the right to punish for things not listed on this list under the staff's discretion. Please use common sense, and if you are unsure about anything, please ask.")
147+
.queue(OVERVIEW_CHANNEL.query().first());
121148
}
122149

123150
public void showRoles() {
@@ -138,35 +165,10 @@ public void showRoles() {
138165
.queue(OVERVIEW_CHANNEL.query().first());
139166
}
140167

141-
public enum Rule {
142-
143-
NSFW("**NSFW content is not allowed** on this server. Keep all content SFW, including profile pictures and names."),
144-
SPAMMING("**Do not spam** or else you will be muted/banned. Spam includes posting the same thing across many channels at the same time or spamming characters (letters, numbers, emojis, and symbols)."),
145-
INVITES("Server invites **are not allowed** unless it's done privately and with the user's consent."),
146-
MASS_MENTION("Do do mass mention a user. If the user has blocked or is ignoring you, it doesn’t count as a proper cause."),
147-
GHOST_PING("Ghost pinging a user is prohibited and can result in **mute**."),
148-
PINGING_STAFF("Pinging us won't make us answer faster, please be patient and we will get to you once we are available."),
149-
SUPPORT_DM("Please do not DM staff for support, instead use the appropriate support channels or create a ticket."),
150-
DOXXING("We have a **zero tolerance policy** for doxxing of any kind. If you're found doxxing **anyone** from the server or others, you will be **banned**."),
151-
LAG("Do not purposefully include characters that may crash or lag other devices. Includes massive animated emotes."),
152-
MINI_MODDING("Mini-modding, or telling people what to do, is prohibited. If there's something that's not okay, ask a staff member to look into it."),
153-
ASKING_FOR_STUFF("Please don’t ask for stuff, including nitro and money. If someone offers to give it to you, that’s fine, but don’t ask for it."),
154-
LOGGING("This server logs all deleted and edited messages for in the case of an infraction.");
155-
156-
private final String description;
157-
158-
Rule(String description) {
159-
this.description = description;
160-
}
161-
162-
public String getDescription() {
163-
return description;
164-
}
165-
}
166-
167168
public enum Role {
168169

169170
CODING_WIZARD("Coding Wizard", "311178859171282944", "It was Tech & now it's MATRIX! The former head of the operations."),
171+
DEVELOPER("Developer", "774690360836096062", "These are the Developers! They are in charge of helping the <@&311178859171282944> with the development of our plugins."),
170172
ASSISTANT("Assistant", "608113993038561325", "This is the Developers Assistant! If the Developers are not online, he is in charge. Occasionally also helps with coding."),
171173
STAFF("Staff", "608114002387533844", "They are here to help! Don't argue with Staff. If you think there is an issue, please contact <@&608113993038561325> or <@&311178859171282944>."),
172174
PATREON("Patreon", "795101981051977788", "These are our incredible Patreon supporters who getting rewarded by us for their monthly support with various rewards, additions and exclusive stuff."),

0 commit comments

Comments
 (0)