Last active
April 7, 2020 20:51
-
-
Save erickhaendel/f63810dec1543bdd3f455a28bd940084 to your computer and use it in GitHub Desktop.
Gamersclub medalhas
This file contains hidden or 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
// COLOCAR DENTRO DA LISTA (LIST) DE CODIGOS SEPARADOS POR VIRGULA E ENTRE ASPAS | |
// EX: | |
// var list = ['CODE_1' , 'CODE_2' , 'CODE_3'] | |
var list = [ | |
]; | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function run() { | |
list.forEach(async (key) => { | |
await sleep(1000); | |
$.post('https://gamersclub.com.br/keys/activate', { | |
key: key | |
}); | |
}) | |
} | |
var size = 0; | |
setInterval(() => { | |
if (size <= list.length) { | |
var _key = list[size]; | |
$.ajax({ | |
type: 'POST', | |
url: 'https://gamersclub.com.br/keys/activate', | |
data: JSON.stringify({ key: _key }), | |
contentType: "application/json", | |
dataType: 'json' | |
}) | |
size++; | |
} | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment