Send opt-in Discord alerts for Sokko TCG Expeditions through palico-bot

- Players turn on alerts one by one in their account: someone opens an expedition group, or one of their expeditions returns; both stay off until chosen.
- Opening a group queues a direct message for each other subscribed player; every 30 seconds the server queues returned expeditions once and sends pending messages to palico-bot's direct message route.
- Permanent refusals (unknown account, closed direct messages) or five failures stop retries; only real Discord accounts receive alerts, and sent rows are purged after 30 days.
- CARDS_DISCORD_ALERTS_URL and CARDS_DISCORD_ALERTS_KEY enable the feature; Administration › Guilde can turn every alert off, and the privacy notice explains what is sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-15 17:09:29 +01:00
parent 6828683f1d
commit 320498d878
24 changed files with 387 additions and 13 deletions

View file

@ -113,3 +113,8 @@
.nebula-expedition-grimoire ul { margin: 0; padding: 0; list-style: none; }
.nebula-expedition-grimoire p { margin: 0; }
.nebula-card-equipment .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
// Alertes Discord dans la page Compte.
.nebula-account-alerts ul { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.nebula-account-alerts .nds-list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3); }
.nebula-account-alerts .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }