init
This commit is contained in:
commit
aeeacfd154
4 changed files with 27 additions and 0 deletions
1
.env.example
Normal file
1
.env.example
Normal file
|
@ -0,0 +1 @@
|
|||
COOKIE='_RoliVerification=XXX'
|
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
dotenv
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.env
|
24
index.js
Normal file
24
index.js
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue