summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-27 19:27:53 +0200
committerTor Andersson <tor@ccxvii.net>2023-03-27 19:28:02 +0200
commit44b2fed796f846bafd48b74c7a7d363d33b29258 (patch)
treefd3420830ee906eea2efcbd4933c8fe9bf763d55
parent3c701c3bca7238772ed045b01f780896e0edf959 (diff)
downloadserver-44b2fed796f846bafd48b74c7a7d363d33b29258.tar.gz
Don't spam "Ready to start!" webhook notifications.
-rw-r--r--server.js10
1 files changed, 0 insertions, 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)
}
}
}