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);