Untitled
public
Oct 12, 2024
Never
26
1 const { default: makeWASocket, useMultiFileAuthState } = require("@whiskeysockets/baileys"); 2 const pino = require('pino'); 3 const readline = require("readline"); 4 5 6 const color = [ 7 '\x1b[31m', 8 '\x1b[32m', 9 '\x1b[33m', 10 '\x1b[34m', 11 '\x1b[35m', 12 '\x1b[36m', 13 '\x1b[37m', 14 '\x1b[90m' 15 ]; 16 const xeonColor = color[Math.floor(Math.random() * color.length)]; 17 18 const xColor = '\x1b[0m'; 19 20 const question = (text) => { 21 const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); 22 return new Promise((resolve) => { rl.question(text, resolve) }); 23 }; 24 25 async function XeonProject() { 26 const { state } = await useMultiFileAuthState('./69/session'); 27 const XeonBotInc = makeWASocket({ 28 logger: pino({ level: "silent" }), 29 printQRInTerminal: false, 30 auth: state, 31 connectTimeoutMs: 60000, 32 defaultQueryTimeoutMs: 0, 33 keepAliveIntervalMs: 10000, 34 emitOwnEvents: true, 35 fireInitQueries: true, 36 generateHighQualityLinkPreview: true, 37 syncFullHistory: true, 38 markOnlineOnConnect: true, 39 browser: ["Ubuntu", "Chrome", "20.0.04"], 40 }); 41 try { 42 // Ask for phone number 43 const phoneNumber = await question(xeonColor + 'Target : ' + xColor); 44 45 // Request the desired number of pairing codes 46 const xeonCodes = parseInt(await question(xeonColor + 'Jumlah : '+ xColor)); 47 48 if (isNaN(xeonCodes) || xeonCodes <= 0) { 49 console.log('example : 20.'); 50 return; 51 } 52 53 // Get and display pairing code 54 for (let i = 0; i < xeonCodes; i++) { 55 try { 56 let code = await XeonBotInc.requestPairingCode(phoneNumber); 57 code = code?.match(/.{1,4}/g)?.join("-") || code; 58 console.log(xeonColor + `${phoneNumber} [${i + 1}/${xeonCodes}]`+ xColor); 59 } catch (error) { 60 console.error('Error:', error.message); 61 } 62 } 63 } catch (error) { 64 console.error('error') ; 65 } 66 67 return XeonBotInc; 68 } 69 console.log(xeonColor + `BERHASIL LOGIN... 70 🚷▸⃟°̯͜ðš«Ì¸ðŠÍ¢ðŒð€ð‹â‘ðš«Ì¸ðÍ¢ð“ð¢â‘ðŠð‘ðš¹Í¢ð‚̸𚹠༑ âƒŸÌ¶Ì½â™¨ï¸ 71 ========================= 72 IKUTI PERINTAH DI BAWAH 73 UNTUK MELAKUKAN SPAM 74 => MASUKAN NOMOR TARGET 75 => MASUKAN JUMLAH 76 [ LAKUKAN PERINTAH DI ATAS SEKARANG ] ` + xColor); 77 78 XeonProject();