diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-27 19:27:53 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-03-27 19:28:02 +0200 |
commit | 44b2fed796f846bafd48b74c7a7d363d33b29258 (patch) | |
tree | fd3420830ee906eea2efcbd4933c8fe9bf763d55 | |
parent | 3c701c3bca7238772ed045b01f780896e0edf959 (diff) | |
download | server-44b2fed796f846bafd48b74c7a7d363d33b29258.tar.gz |
Don't spam "Ready to start!" webhook notifications.
-rw-r--r-- | server.js | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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) } } } |