antonio_pedro

Username Test

Feb 28th, 2022 (edited)
659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  2.  
  3. const tryName = async () => {
  4.  
  5.     let a = alphabet.charAt(Math.floor(Math.random() * 62));
  6.     let b = alphabet.charAt(Math.floor(Math.random() * 62));
  7.     let c = alphabet.charAt(Math.floor(Math.random() * 62));
  8.  
  9.     await new Promise(r => setTimeout(r, 30000));
  10.     let res = await fetch(`https://www.habbo.com.br/api/user/avatars/check-name?name=${a}${b}${c}`, {
  11.       "headers": {
  12.         "content-type": "application/json;charset=UTF-8",
  13.       },
  14.       "mode": "cors",
  15.       "credentials": "include"
  16.     });
  17.     if ((await res.json()).isAvailable) {
  18.        
  19.         console.log(`Conta Disponível: ${a}${b}${c}`);
  20.     } else {
  21.  
  22.     }
  23.     tryName();
  24.  
  25. }
  26.  
  27. tryName();
Add Comment
Please, Sign In to add comment