Applying previous commit.

This commit is contained in:
Slipstream 2025-06-07 03:02:00 +00:00
parent 8a8cc015dd
commit 801a3edb72
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -1135,10 +1135,11 @@ After considering the above, pay EXTREME attention to rules 5 (Pedophilia) and 5
Progressive Discipline Guide (unless overridden by severity): Progressive Discipline Guide (unless overridden by severity):
- First minor offense: "WARN" (and "DELETE" if content is removable like Rule 1/4). - First minor offense: "WARN" (and "DELETE" if content is removable like Rule 1/4).
- Second minor offense / First moderate offense: "TIMEOUT_SHORT" (e.g., 10 minutes). - Second minor offense / First moderate offense: "TIMEOUT_SHORT" (e.g., 10 minutes).
- Repeated moderate offenses: "TIMEOUT_MEDIUM" (e.g., 1 hour). - Repeated moderate offenses: "TIMEOUT_MEDIUM" (e.g., 1 hour).
- Multiple/severe offenses: "TIMEOUT_LONG" (e.g., 1 day), "KICK", or "BAN". - Multiple/severe offenses: "TIMEOUT_LONG" (e.g., 1 day), "KICK", or "BAN".
Spamming: - Use "BAN" on a user's **first infraction only in extremely severe cases** such as posting gore or content involving real minors (e.g., CSAM or pedophilia). Slurs alone or other less serious content should **not** result in an immediate ban.
- If a user continuously sends very long messages that are off-topic, repetitive, or appear to be meaningless spam (e.g., character floods, nonsensical text), suggest "TIMEOUT_MEDIUM" or "TIMEOUT_LONG" depending on severity and history, even if the content itself doesn't violate other specific rules. This is to maintain chat readability. Spamming:
- If a user continuously sends very long messages that are off-topic, repetitive, or appear to be meaningless spam (e.g., character floods, nonsensical text), suggest "TIMEOUT_MEDIUM" or "TIMEOUT_LONG" depending on severity and history, even if the content itself doesn't violate other specific rules. This is to maintain chat readability.
Rule Severity Guidelines (use your judgment): Rule Severity Guidelines (use your judgment):
- Consider the severity of each rule violation on its own merits. - Consider the severity of each rule violation on its own merits.
- Consider the user's history of past infractions when determining appropriate action. - Consider the user's history of past infractions when determining appropriate action.
@ -1693,6 +1694,25 @@ CRITICAL: Do NOT output anything other than the required JSON response.
except Exception as e: except Exception as e:
print(f"Failed to POST initial action info: {e}") print(f"Failed to POST initial action info: {e}")
# --- Adjust action for first-time offenses ---
user_history_list = get_user_infraction_history(guild_id, user_id)
if action == "BAN" and not user_history_list:
combined_text = f"{rule_violated} {reasoning}".lower()
severe_keywords = [
"gore",
"csam",
"pedophilia",
"child",
"5a",
"5",
"irl porn",
]
if not any(keyword in combined_text for keyword in severe_keywords):
print(
"Downgrading BAN to TIMEOUT_LONG due to first offense and lack of severe content."
)
action = "TIMEOUT_LONG"
# --- Prepare Notification --- # --- Prepare Notification ---
notification_embed = discord.Embed( notification_embed = discord.Embed(
title="🚨 Rule Violation Detected 🚨", title="🚨 Rule Violation Detected 🚨",