Different rules per server
Signed-off-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
1387200c00
commit
a0cf29d586
4 changed files with 160 additions and 2 deletions
88
data/rules/442730357897429002.json
Normal file
88
data/rules/442730357897429002.json
Normal file
|
@ -0,0 +1,88 @@
|
|||
[
|
||||
{
|
||||
"image": "https://i.imgur.com/bjH1gza.png"
|
||||
},
|
||||
{
|
||||
"title": "Bot Testing Ground",
|
||||
"description": [
|
||||
"Welcome to Vylpes' Den! Make sure to say hi!",
|
||||
"Invite link: https://discord.gg/UyAhAVp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Discord TOS",
|
||||
"description": [
|
||||
"All servers are required to follow the Discord Terms of Service. This includes minimum age requirements (13+). If the moderation team discover a breach of TOS we are required by discord to ban. Make sure you know them!",
|
||||
"https://discord.com/terms"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Rules",
|
||||
"description": [
|
||||
"**English Only**",
|
||||
"In order for everyone to understand each other we would like to ask everyone to speak in English only.",
|
||||
"",
|
||||
"**No NSFW or Obscene Content**",
|
||||
"This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.",
|
||||
"",
|
||||
"**Treat Everyone with Respect**",
|
||||
"Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.",
|
||||
"",
|
||||
"**No spam or self promotion**",
|
||||
"Outside of #self-promo. This includes DMing fellow members.",
|
||||
"",
|
||||
"**Keep Politics to #general**",
|
||||
"And make sure it doesn't become too heated. Debate don't argue.",
|
||||
"",
|
||||
"**Drama From Other Servers**",
|
||||
"Please don't bring up drama from other servers, keep that to DMs",
|
||||
"",
|
||||
"**Bot Abuse**",
|
||||
"Don't abuse the bots or you will be blocked from using them",
|
||||
"",
|
||||
"**Event Spoilers**",
|
||||
"Contents of events and keynotes, such as the Nintendo Direct, must be spoken about in events, this rule applies for up to 24 hours after the event ends. Even though we will only enforce talking there for a set time, please be considerate of those who haven't watched the event yet."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Moderators Discretion",
|
||||
"description": [
|
||||
"Don't argue with a mod's decision. A moderator's choice is final. If you have an issue with a member of the mod team DM me (Vylpes#0001)."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Supporters",
|
||||
"description": [
|
||||
"If you are a Twitch Subscriber or a Patreon Member and have linked your profiles to your discord account you will get exclusive access to the Vylpes Plus channels, including early access to videos!"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Self-Assignable Roles",
|
||||
"description": [
|
||||
"If you want to assign yourself roles, go to #bot-stuff and type v!role <role>. The current roles you can get are:",
|
||||
"Notify: Get pinged when a new stream or video releases.",
|
||||
"VotePings: Get pinged when I start a new poll",
|
||||
"ProjectUpdates: Get pinged when I update my projects as well as new for them"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "VylBot",
|
||||
"description": [
|
||||
"This server uses a bot made by me, VylBot, to help moderate the server.",
|
||||
"For more information on it, see the GitHub repositories:",
|
||||
"https://github.com/Vylpes/vylbot-core",
|
||||
"https://github.com/Vylpes/vylbot-app"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Links",
|
||||
"description": [
|
||||
"YouTube: https://www.youtube.com/channel/UCwPlzKwCmP5Q9bCX3fHk2BA",
|
||||
"Patreon: https://www.patreon.com/vylpes",
|
||||
"Twitch: https://www.twitch.tv/vylpes_",
|
||||
"Twitter: https://twitter.com/vylpes",
|
||||
"Blog: https://vylpes.xyz"
|
||||
],
|
||||
"footer": "Last updated 01/02/2022"
|
||||
}
|
||||
]
|
70
data/rules/501231711271780357.json
Normal file
70
data/rules/501231711271780357.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
[
|
||||
{
|
||||
"title": "Welcome to Mankalor's Discord Server!",
|
||||
"description": [
|
||||
"*You must follow Discord's TOS, including the rule where", "you must be 13 years or older.",
|
||||
"If moderators know you're under 13, we will have to ban you!*",
|
||||
"",
|
||||
"You need to input a code in *#entry* which is somewhere in this message before you can start chatting, so read the server rules and info below.",
|
||||
"If you still don't see the other channels after writing this code, message a moderator. For any issues with this bot, message Vylpes#5725."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Server Rules",
|
||||
"description": [
|
||||
"1. We allow most things in *#general-off-topic*, but if it pertains to a topic that has a channel, post it in the correct chat.",
|
||||
"",
|
||||
"2. No spamming, except in *#bot-craziness* and *#spam* ",
|
||||
" 2a. Those 'Hacker Warning!!! Copy Paste this to all servers!' messages and other copypastas are considered spam.",
|
||||
"",
|
||||
"3. Do not insult or harass anyone for race, religion, gender, gaming skills, social skills, etc.",
|
||||
" 3a. Some people may be new to Discord or a game. Politely educate, don't belittle.",
|
||||
"",
|
||||
"4. Absolutely no NSFW content on this server. (Porn, Rule 34, etc.)",
|
||||
"",
|
||||
"5. Swearing is allowed, but certain words such as racial/homophobic/disability slurs or sex terms will still be filtered out. Bypassing this will result in punishment.",
|
||||
" 5a. Swearing past the point of typical rager is still not allowed.",
|
||||
" 5b. If you're unsure if a word is allowed, then don't use it.",
|
||||
"",
|
||||
"6. Avoid unnecessarily & excessively @ mentioning anyone, even in *#bot-craziness* and *#spam*",
|
||||
"",
|
||||
"7. Advertising your own content (videos, channels, servers, etc.) should only go in *#self-promo*",
|
||||
"",
|
||||
"8. Do not bring up drama from other places here, keep that to DMs.",
|
||||
"",
|
||||
"9. Keep it serious in the venting chats, don't joke around.",
|
||||
" 9a. To access the vent channels, assign yourself the role from *#self-assign-roles*",
|
||||
"",
|
||||
"10. Do not ask to become a moderator.",
|
||||
"",
|
||||
"11. Please don't join to ask about how to download hacks, where to find them, etc. Requests will be ignored and if you continue to ask you will be muted.",
|
||||
" 11a. Watch Mankalor's video on it here: https://www.youtube.com/watch?v=wps_4DBlEyM"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": [
|
||||
"1. You can assign yourself a game role in *#self-assign-roles*. When you want to setup a lobby type m!lobby into the game's channel.",
|
||||
" 1a. Do not ping a role excessively in a short time. The command's cooldown is 20 minutes.",
|
||||
" 1b. Only use the ping to set up lobbies. Not for advertising, pointless announcements, etc.",
|
||||
" 1c. Only give yourself a role if you don't mind Discord pings.",
|
||||
" 1d. Do not complain about the pings if they're being used correctly. Remove the role, or you will be punished by moderators.",
|
||||
"",
|
||||
"2. Only server staff can use @ everyone & @ here.",
|
||||
"3. If you are a Youtube Sponsor or Twitch Subscriber, you can get the role if you sync your Twitch/Youtube account with your Discord account by going into User Settings > Connections > Twitch/Youtube.",
|
||||
" 3a. This might not work on mobile.",
|
||||
" 3b. We cannot assign SponSub roles manually.",
|
||||
"",
|
||||
"4. Mankalor will ping @ notificationsquad for new videos and streams in #new-videos-streams. If you want these pings, type `m!role Notification Squad` in #self-assign-roles",
|
||||
"",
|
||||
"5. Server link in case you want to invite someone. This link is in the description of my videos, too: https://discord.gg/DQkWVbz",
|
||||
"",
|
||||
"Not following these rules will result in a warning, mute, or ban, depending on the severity and number of offenses.",
|
||||
"",
|
||||
"If you notice anything wrong, notify the *Server Staff*!",
|
||||
"",
|
||||
"Once you've sent the code, go say hi in *#general-off-topic*!",
|
||||
"",
|
||||
"**Update 01 Oct 2021:** Added `11.` and `11a.` to rules"
|
||||
]
|
||||
}
|
||||
]
|
|
@ -23,7 +23,7 @@ export default class Rules extends Command {
|
|||
}
|
||||
|
||||
public override execute(context: ICommandContext): ICommandReturnContext {
|
||||
if (!existsSync(`${process.cwd()}/${process.env.COMMANDS_RULES_FILE!}`)) {
|
||||
if (!existsSync(`${process.cwd()}/data/rules/${context.message.guild?.id}.json`)) {
|
||||
const errorEmbed = new ErrorEmbed(context, "Rules file doesn't exist");
|
||||
errorEmbed.SendToCurrentChannel();
|
||||
|
||||
|
@ -33,7 +33,7 @@ export default class Rules extends Command {
|
|||
};
|
||||
}
|
||||
|
||||
const rulesFile = readFileSync(`${process.cwd()}/${process.env.COMMANDS_RULES_FILE}`).toString();
|
||||
const rulesFile = readFileSync(`${process.cwd()}/data/rules/${context.message.guild?.id}.json`).toString();
|
||||
const rules = JSON.parse(rulesFile) as IRules[];
|
||||
|
||||
const embeds: PublicEmbed[] = [];
|
||||
|
|
Loading…
Reference in a new issue