Skip to content

[feat] : notify spammer on detection and apply timeout with duration message #9

@not-meet

Description

@not-meet

Overview

Currently, when a user is flagged as a spammer, the system silently stores their flag level and chaos level in persistence — but the spammer themselves receives zero feedback. They continue sending messages with no idea they've been caught or restricted.

This feature adds user-facing notifications so that when a spammer is flagged and actioned, they receive a direct message telling them what happened, why, and how long they are restricted for (if timed out).

What Changes

  • When RestrictionManager.applyAction is triggered, a DM is sent to the flagged user (not just the admin channel)
  • The DM message should reflect the action taken:
    • Warning → "Hey, we noticed unusual activity from your account…"
    • Cooldown → "You've been placed on cooldown for X minutes…"
    • Restricted → "Your account has been restricted from sending messages…"
    • Admin Review → "Your account has been flagged for admin review…"
  • Timeout duration should be pulled from LevelConfigStore and shown in human-readable form (e.g. "30 minutes", "2 hours")

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions