ProjectsDarkMatter

DarkMatter

An end-to-end Discord bot platform: a bot that listens to events and plays music, a .NET backend, and a React admin panel. Records all activity, managed from the panel.

C# / .NET 10Discord.NetClean Architecture · CQRSEF Core · PostgreSQLReact · ViteDiscord OAuth

What it does

DarkMatter is a three-part platform that observes and manages a Discord server: it captures messages, channel snapshots, attachments and reactions; plays music; and makes all of it observable/manageable from an admin panel.

How it works (3 parts)

  • Bot — a .NET 10 worker that listens to server events via Discord.Net Gateway; plays music with yt-dlp + ffmpeg (libopus/libsodium voice); forwards every event to the API via typed HttpClient.
  • API — .NET 10, Clean Architecture + CQRS. MediatR pipeline (logging/validation/performance), EF Core + PostgreSQL, dual auth (JWT for admin, X-Api-Key for the bot), Serilog, OpenAPI/Scalar.
  • Admin — a React 19 + Vite + TypeScript SPA; Tailwind v4, TanStack Query, Discord OAuth login, recharts dashboards, TR/EN i18n.

Highlights

A Bot → API → Panel flow with event persistence, per-guild settings caching, and a security-focused (interceptor-based) frontend.