LuminaWebsite/config.example.php
Maaxxs fe1561f4f7 Raids: attendance list, automatic points on archive, reminder callback
Each raid gets an attendance list for raids.manage (present, absent, excused)
with quick actions, members added by hand and a "checked" mark with who and
when. The contribution form can now select a raid's present members for
points or its absent members for a deduction.

Raids can carry points for present members and a deduction for absent ones
(raid_settings). When a raid is archived - on the website or via the button
in Discord, detected on the next raid or contribution page view - the site
awards them once: by attendance if a list exists, otherwise to everyone in a
group without deduction, and not at all if points were already given for
that raid. Settings, attendance and awards follow a raid_id change when the
API re-posts a deleted message.

bot_api.php lets the bot ask which signed-up members have raids.manage when a
raid starts (shared key in config.php bot_callback.key); the bot then sends
them a DM with a link to the list. The bot side lives in the separate bot
repository (cogs/attendance.py).

Also fixes contribution_awards.raid_id being too small for Discord IDs (it
is widened automatically) and raid IDs losing precision in the contribution
form's JavaScript, which kept the raid preselection from ever matching.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 09:52:34 +02:00

34 lines
1.3 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' => 'Lumina Ascendens',
],
'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',
],
// Gemeinsamer Schluessel fuer den Rueckkanal vom Bot (bot_api.php): im Bot als
// WEBSITE_BOT_KEY in der .env eintragen. Mindestens 16 Zeichen, z.B. zufaellig erzeugt.
'bot_callback' => [
'key' => 'langer-zufaelliger-schluessel',
],
'discord' => [
'client_id' => 'deine-discord-client-id',
'client_secret' => 'dein-discord-client-secret',
'redirect_uri' => 'https://lumina.maaxxs-coding.de/discord_callback.php',
],
];