Skip to content

Instantly share code, notes, and snippets.

@erickhaendel
Last active April 7, 2020 20:51
Show Gist options
  • Save erickhaendel/f63810dec1543bdd3f455a28bd940084 to your computer and use it in GitHub Desktop.
Save erickhaendel/f63810dec1543bdd3f455a28bd940084 to your computer and use it in GitHub Desktop.
Gamersclub medalhas
// 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