Skip to content

Instantly share code, notes, and snippets.

View thesmartcoder123's full-sized avatar

thesmartcoder123

View GitHub Profile
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
(async () => {
const box = prompt('What is the box you would like to open my buddy? (EXAMPLE: Safari)');
const amount = prompt('How many boxes do you want to open?');
const response = await fetch('https://api.blooket.com/api/users/verify-token', { credentials: "include" });
const data = await response.json();
async function getName() {
const response = await fetch('https://api.blooket.com/api/users/verify-token', {
method: "GET",
headers: {
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.9,ru;q=0.8",
},
credentials: "include"
});
const data = await response.json();