read offer from env too

This commit is contained in:
xunuwu 2025-08-01 03:20:47 +02:00
parent aeeacfd154
commit e16da3bafa
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -9,7 +9,7 @@ setInterval(() => {
"Content-Type": "application/json", "Content-Type": "application/json",
Cookie: process.env.COOKIE, Cookie: process.env.COOKIE,
}, },
body: '{"player_id":149009823,"offer_item_ids":[136803374,71484026,20945159,144302847],"request_item_ids":[],"request_tags":["downgrade"]}', body: process.env.OFFER,
}).then((res) => { }).then((res) => {
if (res.ok) { if (res.ok) {
console.log("success"); console.log("success");
@ -21,4 +21,4 @@ setInterval(() => {
console.log(x); console.log(x);
}); });
}); });
}, 60_000 * 20); }, 60_000 * 5);