From ad3a9e894d9dfa7030506f0eb064a5a6813a6410 Mon Sep 17 00:00:00 2001 From: xunuwu Date: Fri, 15 Aug 2025 05:35:01 +0200 Subject: [PATCH] send an ad at startup --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a3fd662..c808f94 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ console.log("started"); -setInterval(() => { +function sendAd() { fetch("https://api.rolimons.com/tradeads/v1/createad", { method: "POST", credentials: "include", @@ -21,4 +21,8 @@ setInterval(() => { console.log(x); }); }); -}, 60_000 * 5); +} + +sendAd(); + +setInterval(sendAd, 60_000 * 5);