From a3ae62afd2eecb3831e2483f94d2db6a1d6bb748 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 6 Sep 2023 20:41:52 +0200 Subject: Notification system improvements. Enable webhook notification support with .env WEBHOOKS=1 Send notifications when invited to a game. Use notification "too soon" logic for webhooks as well. Try sending webhooks 3 times before giving up. Check if player is on the join page instead of the funky "offline" check when sending "your game is ready" notification. Only show mail/webhook notification settings if they are enabled. --- views/index.pug | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'views/index.pug') diff --git a/views/index.pug b/views/index.pug index 6b90638..8e399a7 100644 --- a/views/index.pug +++ b/views/index.pug @@ -48,3 +48,8 @@ html a(href="/"+title.title_id)= title.title_name p!= process.env.SITE_INVITE + + if !ENABLE_MAIL + p.error Mail notifications disabled. + if !ENABLE_WEBHOOKS + p.error Webhook notifications disabled. -- cgit v1.2.3