} ]; async function hablarGarcia(texto){ const intencion = detectarIntencion(texto); if(intencion){ await dormir(180); await imprimir("García > ", "garcia-tag"); await garciaAccion(intencion, texto); await imprimir(""); return; } const t = texto.toLowerCase(); await dormir(220); await imprimir("García > ", "garcia-tag"); let item = null; for(const x of garciaBase){ if(x.claves.some(k => t.includes(k))){ item = x; break; } } if(item){ for(const l of item.respuesta()){ await escribirLinea(" " + l, 8, "garcia"); await dormir(25); } } else { await escribirLinea(" No te he entendido.", 10, "garcia"); await escribirLinea(" Prueba: 'crea un servidor llamado hosthack'", 10, "garcia"); await escribirLinea(" 'abre el servidor hosthack'", 10, "garcia"); await escribirLinea(" 'lista mis servidores'", 10, "garcia"); } await imprimir(""); } /* ========================================================== COMANDOS DE TERMINAL ========================================================== */ const comandos = { async help(){ await imprimir("=== COMANDOS ==="); await imprimir(""); await imprimir("[ IA ]"); await imprimir(" garcia - habla con Garcia"); await imprimir(""); await imprimir("[ SISTEMA ]"); await imprimir(" help / clear / whoami / status / banner / uptime / exit"); await imprimir(""); await imprimir("[ ARCHIVOS ]"); await imprimir(" ls / cd / pwd / cat "); await imprimir(""); await imprimir("[ RED ]"); await imprimir(" scan / nmap / ping / traceroute / sniff"); await imprimir(""); await imprimir("[ WIFI ]"); await imprimir(" wifiscan / wifihack / handshake / crack "); await imprimir(""); await imprimir("[ ATAQUES ]"); await imprimir(" target / hack / ddos / sqlmap / hydra / decrypt"); await imprimir(""); await imprimir("[ DARCKWEB ]"); await imprimir(" create server / servers / open / delete server "); await imprimir(" market / wallet / botnet / tunnel"); await imprimir(""); await imprimir("[ EXTRAS ]"); await imprimir(" matrix / sudo / history"); }, async clear(){ term.innerHTML = ""; }, async garcia(){ estado.modoGarcia = true; await imprimir(""); await escribirLinea("García > Hola, soy García.", 18, "garcia-tag"); await escribirLinea(" Dime cosas como:", 8, "garcia"); await escribirLinea(" - crea un servidor llamado hosthack", 8, "garcia"); await escribirLinea(" - abre el servidor hosthack", 8, "garcia");