Added a language and a moderation system. You have a filter.json in src/resources and you can set up rules in it without ever touching code.
Here’s the syntax:
{
“flags”: [
{
“name”: “Gyűlölkődés”,
“description”: “A gyűlölködő meggnyílvánulások nem megengedettek a szerveren!”,
“punishment”: “ONE_HOUR”,
“flags”: [
],
“ignore”: [
],
“always”: [
“nigger”,
“nigga”,
“cigány”,
“cigris”,
“cigo”,
“nigris”,
“nigg”,
“buzi”
]
}
]
}
When someone types one of the words out form “always”, it’ll punish them no matter what. If they send something that’s in “flags”, it’ll check if it also contains something from “ignore”. This is a bad system, but it works fine for now. Also, it punishes the user from the “punishment” field. You can set the following parameters: NONE, FIVE_MIN, ONE_HOUR, ONE_DAY, THREE_DAYS, SEVEN_DAYS, KICK, BAN.
As you can see from the linked image, it lets people bypass the moderation system with one of the following permissions: MANAGE_CHANNEL, MESSAGE_MANAGE.
I also added a language system, so what value you set in .env for “LANGUAGE”, it’ll use that +”.json” for every message. That’ll be useful when translating.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.