This commit is contained in:
xunuwu 2025-07-27 20:08:58 +02:00
commit aeeacfd154
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
4 changed files with 27 additions and 0 deletions

1
.env.example Normal file
View file

@ -0,0 +1 @@
COOKIE='_RoliVerification=XXX'

1
.envrc Normal file
View file

@ -0,0 +1 @@
dotenv

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.env

24
index.js Normal file
View file

@ -0,0 +1,24 @@
console.log("started");
setInterval(() => {
fetch("https://api.rolimons.com/tradeads/v1/createad", {
method: "POST",
credentials: "include",
headers: {
"User-Agent": "xunuwu's personal bot (xunuwu@gmail.com)",
"Content-Type": "application/json",
Cookie: process.env.COOKIE,
},
body: '{"player_id":149009823,"offer_item_ids":[136803374,71484026,20945159,144302847],"request_item_ids":[],"request_tags":["downgrade"]}',
}).then((res) => {
if (res.ok) {
console.log("success");
} else {
console.log("failure");
}
res.json().then((x) => {
console.log("return body: ");
console.log(x);
});
});
}, 60_000 * 20);