README aktualisiert (Setup-Sektionen, Endpoints, Struktur) + Community-Ankündigungspost
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -53,13 +53,20 @@ Share Tech Mono, selbst gehostet).
|
||||
Alles zur Laufzeit änderbar — gespeichert in SQLite, Env-Variablen sind nur Fallback,
|
||||
kein Redeploy nötig:
|
||||
|
||||
- **Allgemein:** Öffentliche URL, Gitea-URL
|
||||
- **Kanäle** (Devlog / Commit / Release) als Dropdown + „Test senden"-Button je Kanal
|
||||
- **Devlog:** Ping-Rolle, Auto-Threads an/aus, Wochen-Rückblick an/aus (+ Sofort-Test)
|
||||
- **Devlog:** Ping-Rolle, Auto-Threads, Wochen-Rückblick (+ Sofort-Test)
|
||||
- **Commit-Feed:** an/aus, Branch-Filter, ignorierte Repos
|
||||
(gefiltert wird nur das Posten — archiviert wird immer; ignorierte Repos komplett übersprungen)
|
||||
- **Bug-Reports:** Ziel-Repo für `/bug`
|
||||
(gefiltert wird nur das Posten — archiviert wird immer)
|
||||
- **Community:** Playtester-Rolle (+ Liste), Starboard-Kanal + ⭐-Schwellwert,
|
||||
Screenshot-Kanal, Voting-Kanal
|
||||
- **Moderation & Kontakt:** Modmail-, Willkommens-, Mod-Log-Kanal
|
||||
- **Game-Server:** Status-Kanal + Server-Liste (`Name=URL`, FiveM-kompatibel)
|
||||
- **Bug-Reports / Roadmap:** Ziel-Repos
|
||||
- **Backups:** an/aus, Upload-Kanal, „Backup jetzt"
|
||||
- **Watchdog:** überwachte URLs
|
||||
- **Status-Panel:** Bot-Account, Uptime, Devlog-/Commit-Zahlen, DB-Größe
|
||||
- **API-Keys:** erstellen (Name + Scopes), widerrufen, last-used
|
||||
- **Status-Panel:** Bot-Account, Uptime, Devlog-/Commit-Zahlen, DB-Größe, letztes Backup
|
||||
|
||||
---
|
||||
|
||||
@@ -222,9 +229,10 @@ urllib.request.urlopen(req)
|
||||
| `POST /webhooks/gitea` | HMAC-Signatur | Push / Release / Issues von Gitea |
|
||||
| `POST /webhooks/devlog/:secret` | Secret im Pfad | Devlog von devlog.py (JSON/Multipart) |
|
||||
| `GET /api/devlogs?page=&q=` | — | Archiv + FTS5-Volltextsuche |
|
||||
| `GET /api/releases?page=` | — | Changelog |
|
||||
| `GET /api/releases` · `/api/roadmap` · `/api/gallery` · `/api/wishes` · `/api/heatmap` | — | Changelog · Milestones · Galerie · Wunsch-Ranking · Commit-Heatmap |
|
||||
| `GET /feed.xml` | — | RSS |
|
||||
| `GET /devlog-assets/*` | — | Lokal gespeicherte Devlog-Bilder |
|
||||
| `GET /devlog-assets/*` · `/gallery-assets/*` | — | Lokal gespeicherte Bilder |
|
||||
| `GET /api/playtesters` | Admin | Playtester-Liste |
|
||||
| `POST/GET /api/v1/*` | API-Key (Bearer) | Externe Skripte — siehe „API v1" oben |
|
||||
| `GET/POST/DELETE /api/apikeys` | Admin | API-Key-Verwaltung |
|
||||
| `GET/PUT /api/settings`, `POST /api/settings/test/:target` | Admin | Setup-Seite |
|
||||
@@ -246,14 +254,20 @@ d4rkbot/
|
||||
│ ├── db.js # SQLite: Schema, Migrationen, FTS5, alle Queries
|
||||
│ ├── runtime-settings.js # Effektive Settings (DB vor Env)
|
||||
│ ├── gitea-api.js # Gitea-REST (Issues + Assets für /bug)
|
||||
│ ├── backup.js # Nächtliche DB-Backups (gzip, Rotation, Upload)
|
||||
│ ├── bot/
|
||||
│ │ ├── client.js # Discord-Client, Commands, Listener (Devlog, Delete, Buttons)
|
||||
│ │ ├── client.js # Discord-Client, Commands, Listener, Button-Handler
|
||||
│ │ ├── commit-feed.js # Push → Embed
|
||||
│ │ ├── release-feed.js # Release → Ankündigungs-Embed
|
||||
│ │ ├── devlog-archive.js # Nachricht → SQLite (+ Bild-Download)
|
||||
│ │ ├── community.js # Starboard + Screenshot-Galerie
|
||||
│ │ ├── mod-tools.js # Modmail, Willkommens-Embed, Mod-Log
|
||||
│ │ ├── server-monitor.js # Game-Server-Status (FiveM-kompatibel)
|
||||
│ │ ├── giveaways.js # Giveaway-Ziehung (Scheduler)
|
||||
│ │ ├── weekly-recap.js # Sonntags-Zusammenfassung + Scheduler
|
||||
│ │ ├── watchdog.js # URL-Checks + DM-Alarm
|
||||
│ │ └── commands/ # ping, devlog-backfill, bug
|
||||
│ │ └── commands/ # ping, devlog-backfill, bug, playtester-setup,
|
||||
│ │ # galerie-backfill, wunsch, giveaway
|
||||
│ └── web/
|
||||
│ ├── server.js # Fastify: Webhooks, Static, SPA-Fallback
|
||||
│ ├── auth.js # Discord-OAuth2 + Session-Cookies
|
||||
@@ -263,7 +277,7 @@ d4rkbot/
|
||||
│ └── src/
|
||||
│ ├── App.jsx # Layout, Router, Nav, Login-Status
|
||||
│ ├── markdown.jsx # Mini-Markdown (fett/kursiv/Code/Links/Listen/---/##)
|
||||
│ └── pages/ # Devlogs, Changelog, Commits, Settings
|
||||
│ └── pages/ # Devlogs, Roadmap, Galerie, Changelog, Commits, Settings
|
||||
├── tools/test-webhook.mjs # Lokaler Commit-Feed-Test
|
||||
├── .env.example # Vorlage für alle Env-Variablen
|
||||
├── Dockerfile # Multi-Stage: Frontend-Build + node:22-slim Runtime
|
||||
|
||||
Reference in New Issue
Block a user