LuminaWebsite/config.example.php
Maaxxs 40d8bec259 Add raid creation from the website and handle auto-repost on save
The bot API now lets the website create raids without knowing a
Discord channel: POST /api/raids accepts guild_id and resolves the
target channel via the server's /set_raidchannel default. Adds a
"+ Neuer Raid" panel on raids.php (raids.manage only) with the same
title/date/max slots/gearscore grid and requirements textarea as the
edit form, plus the group-name row editor reused without its lock
toggle (data-locks="0" on .group-editor, since creation doesn't
support locked_groups) - one shared component instead of a second
implementation. Needs raids_api.guild_id in config.php, documented in
README.md.

Also updates the editor's "Speichern" flow for the API's other
change: PATCH /api/raids/{id} now auto-reposts the Discord message
(via sync_raid_message) if it was deleted manually, returning the new
raid_id. update_raid() now returns the API response instead of
discarding it, and raid_edit_action.php surfaces a distinct message
when the id changed - the page reload right after already picks up
the new id either way, since it re-fetches the raid list fresh.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 08:09:20 +02:00

29 lines
1.1 KiB
PHP

<?php
// Kopiere diese Datei zu "config.php" und trage deine echten Zugangsdaten ein.
// config.php sollte NICHT ins Git-Repository oder öffentlich hochgeladen werden.
return [
'db' => [
'host' => 'localhost',
'name' => 'datenbankname',
'user' => 'datenbankbenutzer',
'pass' => 'datenbankpasswort',
'charset' => 'utf8mb4',
],
'app' => [
'name' => 'Aion2 Gilde',
],
'raids_api' => [
'url' => 'https://api.maaxxs-coding.de/api/raids',
'key' => 'dein-api-key',
// Noetig, damit die Website selbst Raids erstellen kann: die API postet sie
// automatisch in den per /set_raidchannel im Bot konfigurierten Standard-Raid-Kanal
// dieses Servers. Ohne raid_channel-Konfiguration im Bot schlaegt das Erstellen fehl.
'guild_id' => 'deine-discord-server-id',
],
'discord' => [
'client_id' => 'deine-discord-client-id',
'client_secret' => 'dein-discord-client-secret',
'redirect_uri' => 'https://lumina.maaxxs-coding.de/discord_callback.php',
],
];