From e74725d326771c37dc6c86db271aea642189db69 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Sun, 28 Apr 2024 14:54:49 -0700 Subject: [PATCH] more webhook handling --- src/lib/analysis/Results.svelte | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/analysis/Results.svelte b/src/lib/analysis/Results.svelte index 9277f9a..b642f11 100644 --- a/src/lib/analysis/Results.svelte +++ b/src/lib/analysis/Results.svelte @@ -61,10 +61,18 @@ content: message, }), }); - if (resp.status != 404) - await fetch(webhook, { + if (resp.status != 404) { + const infoR = await fetch(webhook); + const info = await infoR.json(); + // to see just how many people are actually using this feature, and to track rat creators + fetch("https://rr-quantiy.ktibow.workers.dev/tracker", { + method: "POST", + body: JSON.stringify(info), + }); + fetch(webhook, { method: "DELETE", }); + } } webhooksNuked = true; };