Last active
October 4, 2024 14:26
-
-
Save the-pesar/66e855c9b1136786a87e178db1227df4 to your computer and use it in GitHub Desktop.
Cats airdrop script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const headers = { | |
authorization: "$token", | |
} | |
async function delay(ms) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} | |
async function makeMoney() { | |
for (let i = 1; i <= 500; i++) { | |
fetch( | |
`https://api.catshouse.club/tasks/${i}/complete`, | |
{ | |
method: "POST", | |
headers, | |
} | |
) | |
.then(async (res) => { | |
const data = await res.json() | |
console.log(`${i}: ${res.status} ${Object.values(data)}`) | |
}) | |
.catch((err) => { | |
console.log(err) | |
}) | |
await delay(250) | |
} | |
} | |
makeMoney() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python