antonio_pedro

CHECK HB NAME

Jan 26th, 2025 (edited)
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.74 KB | Source Code | 0 0
  1. // BOT Habbo BR - Antonio (2025)
  2. const nicks = [
  3.   "Bonnie"
  4. ]; // se leu mamou
  5.  
  6. const tryName = async () => {
  7.   for (let i = 0; i < nicks.length; i++) {
  8.     let currentWord = nicks[i];
  9.  
  10.     await new Promise(r => setTimeout(r, 0));
  11.     let res = await fetch(`https://www.habbo.com.br/api/user/avatars/check-name?name=${currentWord}`, {
  12.       "headers": {
  13.         "content-type": "application/json;charset=UTF-8",
  14.       },
  15.       "mode": "cors",
  16.       "credentials": "include"
  17.     });
  18.  
  19.     if ((await res.json()).isAvailable) {
  20.       console.log(`Conta Disponível: ${currentWord}`);
  21.     } else {
  22.       // Ação a ser tomada caso o nick não esteja disponível
  23.     }
  24.   }
  25.  
  26.   tryName(); // continua verificando os nicks
  27. }
  28.  
  29. tryName();
  30.  
Advertisement
Add Comment
Please, Sign In to add comment