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
async function processNames() { | |
for (const name of namelist) { | |
try { | |
const res = await makeRequest(name); | |
if (res.ok) { | |
const data = await res.json(); | |
if (data.taken) { | |
console.log(`[-] ${name} was taken.`) | |
continue; |
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
namelist = [] // names here | |
async function processNames() { | |
for (const name of namelist) { | |
try { | |
const res = await makeRequest(name); | |
if (res.ok) { | |
console.log(`Username ${name} is available.`); | |
break; |