95 lines
2.5 KiB
YAML
95 lines
2.5 KiB
YAML
# Banned Words Configuration
|
|
# Manage blocked words and patterns for content filtering
|
|
|
|
# Global patterns applied to all guilds (unless overridden)
|
|
global_patterns:
|
|
# Basic profanity filter
|
|
- pattern: "badword1"
|
|
action: delete
|
|
is_regex: false
|
|
reason: "Basic profanity filter"
|
|
category: profanity
|
|
severity: 5
|
|
enabled: true
|
|
|
|
- pattern: "badword2"
|
|
action: warn
|
|
is_regex: false
|
|
reason: "Mild profanity"
|
|
category: profanity
|
|
severity: 3
|
|
enabled: true
|
|
|
|
# Regex example for variations
|
|
- pattern: "sp[a4]mm*[i1]ng"
|
|
action: delete
|
|
is_regex: true
|
|
reason: "Spam pattern detection"
|
|
category: spam
|
|
severity: 7
|
|
enabled: true
|
|
|
|
# Hate speech prevention
|
|
- pattern: "hate.*speech.*example"
|
|
action: timeout
|
|
is_regex: true
|
|
reason: "Hate speech filter"
|
|
category: hate_speech
|
|
severity: 9
|
|
enabled: true
|
|
|
|
# Guild-specific pattern overrides
|
|
# Use your Discord server ID as the key
|
|
guild_patterns:
|
|
123456789012345678: # Replace with actual guild ID
|
|
- pattern: "guild-specific-word"
|
|
action: warn
|
|
is_regex: false
|
|
reason: "Server-specific rule"
|
|
category: harassment
|
|
severity: 4
|
|
enabled: true
|
|
override_global: false
|
|
|
|
- pattern: "allowed-here"
|
|
action: delete
|
|
is_regex: false
|
|
reason: "Disable global pattern for this guild"
|
|
category: profanity
|
|
severity: 1
|
|
enabled: false # Disabled = allows the word in this guild
|
|
override_global: true # Overrides global patterns
|
|
|
|
# Add more guild IDs as needed
|
|
# 987654321098765432:
|
|
# - pattern: "another-server-rule"
|
|
# action: strike
|
|
# [...]
|
|
|
|
# Configuration Notes:
|
|
#
|
|
# Actions Available:
|
|
# delete = Delete the message immediately
|
|
# warn = Send warning to user and log
|
|
# strike = Add strike to user (triggers escalation)
|
|
# timeout = Temporarily mute user
|
|
#
|
|
# Regex Patterns:
|
|
# is_regex: true allows advanced pattern matching
|
|
# Examples:
|
|
# - "hell+o+" matches "hello", "helllo", "helloooo"
|
|
# - "[a4]dmin" matches "admin" or "4dmin"
|
|
# - "spam.*bot" matches "spam bot", "spambot", "spam detection bot"
|
|
#
|
|
# Categories:
|
|
# profanity, hate_speech, spam, scam, harassment, sexual, violence
|
|
#
|
|
# Severity (1-10):
|
|
# 1-3 = Mild violations (warnings)
|
|
# 4-6 = Moderate violations (delete message)
|
|
# 7-8 = Serious violations (timeout)
|
|
# 9-10 = Severe violations (kick/ban)
|
|
#
|
|
# Override Global:
|
|
# false = Use this rule in addition to global patterns
|
|
# true = This rule replaces global patterns for this guild |