> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myprotect-bot.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration & Dashboard

> Managing settings via /config and the Web Dashboard.

# Configuration Architecture

MyProtect adheres to a strict **1:1 Parity Standard**: every configurable parameter available in the Discord bot's interactive `/config` panel is equally configurable from the Next.js Web Dashboard, and vice versa.

***

## The Slash Command (`/config`)

The `/config` command is your in-Discord mission control. Built exclusively with Discord Components v2 and secondary action buttons, it eliminates complex multi-level text menus in favor of responsive, contextual embeds.

### Key Navigation Modules

| Module | Description | Key Toggles |
| :- | :- | :- |
| **Anti-Raid** | Real-time destructive event mitigations | Anti-Mass Channel, Anti-Mass Role, Anti-Webhook, Anti-Server Update |
| **ShieldNet** | Decentralized collaborative threat defense | Cross-server sanctions, Trust Circle subscriptions, Vaccine delivery |
| **Anti-Scam** | Visual & OCR attachment inspection | Image spam, QR code analysis, Crypto trap recognition, NSFW filters |
| **Trust Score** | Dynamic reputation scoring | Restriction thresholds, join penalties, automated quarantine |
| **AutoMod** | Automated text enforcement | Link restrictions, invite blockers, anti-leak tokens, toxic language |
| **System Channel** | Automated logging routing | Dedicated security alerts channel, moderation logs, audit logs |

***

## The Next.js Web Dashboard

The web dashboard at [myprotect-bot.fr](https://myprotect-bot.fr) provides a high-density, Apple-inspired interface designed for server administrators managing large or complex communities.

### Dashboard Highlights

* **Real-Time Module Status**: Instant visual confirmation of active defenses and maintenance modes across all 40 system features.
* **Incident Inspector**: Detailed forensic records of blocked raids, quarantined accounts, and flagged attachment images.
* **Granular DAC Management**: Visual assignment of the 39 Delegated Access Control permissions across your staff hierarchy.
* **Analytics & Health Metrics**: Member growth curves, join spikes, message volume trends, and weekly security summaries.

***

## Real-Time Synchronization Engine

Behind the scenes, changes made via either interface are coordinated through an enterprise Redis Pub/Sub messaging pipeline:

```text theme={null}
[ Administrator Action ]
          │
    ┌─────┴─────────────────────┐
    ▼                           ▼
[ Discord /config ]    [ Next.js Dashboard ]
    │                           │
    ▼                           ▼
[ PostgreSQL DB ]       [ NestJS API ]
    │                           │
    └───────────┬───────────────┘
                ▼
       [ Redis Pub/Sub ]
       (bot:cache:invalidate)
                │
                ▼
      [ Bot Gateway Shards ]
      (Instant Memory Refresh)
```

1. When a toggle is flipped on the dashboard, the NestJS API validates the payload with strict schema guards (`buildSettingsPatch`).
2. The change is persisted to PostgreSQL and a broadcast message is dispatched to Redis channel `bot:cache:invalidate`.
3. All running Discord bot shards immediately flush the corresponding guild cache and apply the updated behavior in sub-millisecond time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.