send an ad at startup
This commit is contained in:
parent
862c8ab896
commit
ad3a9e894d
1 changed files with 6 additions and 2 deletions
8
index.js
8
index.js
|
@ -1,6 +1,6 @@
|
||||||
console.log("started");
|
console.log("started");
|
||||||
|
|
||||||
setInterval(() => {
|
function sendAd() {
|
||||||
fetch("https://api.rolimons.com/tradeads/v1/createad", {
|
fetch("https://api.rolimons.com/tradeads/v1/createad", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
credentials: "include",
|
credentials: "include",
|
||||||
|
@ -21,4 +21,8 @@ setInterval(() => {
|
||||||
console.log(x);
|
console.log(x);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}, 60_000 * 5);
|
}
|
||||||
|
|
||||||
|
sendAd();
|
||||||
|
|
||||||
|
setInterval(sendAd, 60_000 * 5);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue