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
The Next.js Web Dashboard
The web dashboard at 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:- When a toggle is flipped on the dashboard, the NestJS API validates the payload with strict schema guards (
buildSettingsPatch). - The change is persisted to PostgreSQL and a broadcast message is dispatched to Redis channel
bot:cache:invalidate. - All running Discord bot shards immediately flush the corresponding guild cache and apply the updated behavior in sub-millisecond time.

