Show the destination, result and loot in Sokko TCG Discord alerts, with a button to the expedition
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 23m48s
Validate and deploy Sokko G / deploy (push) Successful in 16s

- Each queued alert keeps an embed and a link button: the destination illustration as thumbnail, the tier, score and loot for a return, the difficulty and automatic departure for a new group.
- The button and the message link open #/cards/expeditions/<id>, which scrolls to the player's expedition or group and highlights it; Discord login now returns to that link.
- Without an https CARDS_PUBLIC_ORIGIN the link stays in the text, without button or thumbnail, which Discord would refuse.
- Delivery docs name palico-bot's NOTIFICATIONS_API_KEY and its local-only route on port 3101.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-29 11:35:15 +01:00
parent 734a3b6a8b
commit 82cebd0fd1
17 changed files with 184 additions and 37 deletions

View file

@ -20,7 +20,7 @@ DISCORD_REDIRECT_URI=https://sokkog.example.com/api/cards/auth/callback
CARDS_ADMIN_DISCORD_IDS=
# Connexion factice qui accorde les droits administrateur : réservée au développement, ignorée en production.
CARDS_DEV_AUTH=false
# Alertes Discord des Expéditions, envoyées par palico-bot (route POST /api/notifications/dm et sa clé WEB_API_KEY).
# Alertes Discord des Expéditions, envoyées par palico-bot (route POST /api/notifications/dm et sa clé NOTIFICATIONS_API_KEY).
# Laissées vides, les alertes sont indisponibles et leur choix n'apparaît pas aux joueurs.
CARDS_DISCORD_ALERTS_URL=
CARDS_DISCORD_ALERTS_KEY=