Show the destination, result and loot in Sokko TCG Discord alerts, with a button to the expedition
- 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:
parent
734a3b6a8b
commit
82cebd0fd1
17 changed files with 184 additions and 37 deletions
|
|
@ -620,6 +620,10 @@ export const MIGRATIONS = [
|
|||
`
|
||||
UPDATE mirror_settings SET settings_json = json_set(settings_json, '$.margins.normal', 6) WHERE json_extract(settings_json, '$.margins.normal') = 3;
|
||||
UPDATE mirror_settings SET settings_json = json_set(settings_json, '$.margins.hard', 14) WHERE json_extract(settings_json, '$.margins.hard') = 6;
|
||||
`,
|
||||
// Alertes Discord enrichies : chaque message en file garde son embed (destination, résultat, butin) et son bouton de lien.
|
||||
`
|
||||
ALTER TABLE alert_outbox ADD COLUMN extra_json TEXT CHECK (extra_json IS NULL OR json_valid(extra_json));
|
||||
`
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue