Skip to content

Commit

Permalink
more webhook handling
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Apr 28, 2024
1 parent 31f0ff1 commit e74725d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/lib/analysis/Results.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit e74725d

Please sign in to comment.