-
Notifications
You must be signed in to change notification settings - Fork 0
Dashboard
GH0ST EMPIRE edited this page Jun 6, 2026
·
1 revision
Next.js (App Router) · Tailwind · Supabase · styl Netflix (
#E50914). Live: https://e-bot-dc.vercel.app
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OAuth Discord → podpisane HMAC ciasteczko sesji (lib/session.ts, Web Crypto).
middleware.ts chroni wszystkie trasy poza /login, /api/auth, /api/img, /_next, /favicon.ico.
Dostęp tylko dla właściciela — allowlista DASHBOARD_OWNER_IDS.
| Strona | Co robi |
|---|---|
| 🎮 Biblioteka | Półki z okładkami (PSN/Steam/GOG), filtry, dane z getGames()
|
| 🔴 Live | Status Twitch / Kick / Rumble / YouTube, auto‑odświeżanie 30 s + sygnał dźwiękowy |
| 💰 Ekonomia | Konfiguracja nagród z GH0ST EMPIRE (/api/bot/config: messageReward, voiceRewardPerMinute…) |
| ⚙️ Ustawienia | Ustawienia bota, presence, anti‑nuke, akcent motywu |
| 👤 Profil bota | Zmiana nazwy i avatara (Discord PATCH /users/@me, owner‑gated) |
| 🛰️ Status bota | Heartbeat z Supabase (bot_status: online, guilds, tag, ts — świeży < 2 min) |
-
Zaproś bota —
lib/invite.ts→botInviteUrl()(DISCORD_CLIENT_ID+ uprawnienia1099780312198). -
Customizacja — nazwa/avatar bota (
/api/bot/profile). -
Presence — status/aktywność (
bot_presence:{status, type, text, url}). -
Theme switcher — zmienna CSS
--accent-rgb, brak migotania (inline<script>w<head>). -
Image proxy —
/api/imgz whitelistą hostów (anty‑SSRF).
- Fonty:
next/font/google— Oswald (display) + Montserrat (body), subsetylatin+latin-ext(polskie znaki). - Paleta: czerń + czerwień Netflix
#E50914, półki z okładkami, minimalistyczny sidebar (dopasowany do GH0ST EMPIRE).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Architektura i przepływy: docs/ARCHITECTURE.md
🎬 E‑BOT · GH0ST EMPIRE — © 2026 Gh0s777tt · proprietary · dashboard