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:
parent
6828683f1d
commit
320498d878
24 changed files with 387 additions and 13 deletions
|
|
@ -255,6 +255,12 @@ export function validateSiteContent(site) {
|
|||
"cards.guild.expeditionsClaim",
|
||||
"cards.guild.expeditionsOpen",
|
||||
"cards.packs.giftFromExpedition",
|
||||
"cards.account.alertsTitle",
|
||||
"cards.account.alertsText",
|
||||
"cards.account.alertsGroupOpened",
|
||||
"cards.account.alertsExpeditionReturned",
|
||||
"cards.account.alertsOn",
|
||||
"cards.account.alertsOff",
|
||||
"cards.expeditions.affinity",
|
||||
"cards.expeditions.resonance",
|
||||
"cards.expeditions.resonanceTypes.echo",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue