From 44b2fed796f846bafd48b74c7a7d363d33b29258 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 27 Mar 2023 19:27:53 +0200 Subject: Don't spam "Ready to start!" webhook notifications. --- server.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server.js b/server.js index d492935..1c3e422 100644 --- a/server.js +++ b/server.js @@ -1757,15 +1757,6 @@ function webhook_game_link(game, user) { return SITE_URL + "/join/" + game.game_id } -function webhook_ready_to_start(user, game_id) { - let webhook = SQL_SELECT_WEBHOOK_SEND.get(user.user_id) - if (webhook) { - let game = SQL_SELECT_GAME_VIEW.get(game_id) - let message = webhook_game_link(game, user) + " - Ready to start!" - send_webhook(user.user_id, webhook, message) - } -} - function webhook_game_started(user, game_id) { let webhook = SQL_SELECT_WEBHOOK_SEND.get(user.user_id) if (webhook) { @@ -1978,7 +1969,6 @@ function notify_ready_to_start_reminder() { if (owner) { if (owner.notify) mail_ready_to_start_notification(owner, game.game_id, 25 * HOURS) - webhook_ready_to_start(owner, game.game_id) } } } -- cgit v1.2.3