From d8badf1fde42337e280e062da93b13bcc1ba816c Mon Sep 17 00:00:00 2001 From: Rodrigo Bertoldo de Sousa Martins Date: Fri, 3 Apr 2026 12:03:58 -0300 Subject: [PATCH] ajuda: add genieacs functions Signed-off-by: Rodrigo Bertoldo de Sousa Martins --- src/bot/handler.js | 47 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/src/bot/handler.js b/src/bot/handler.js index 65c909a..0f09cab 100644 --- a/src/bot/handler.js +++ b/src/bot/handler.js @@ -357,7 +357,12 @@ Digite /help para ver todos os comandos disponíveis! • "adicionar onu fiberhome SERIAL" • "remover onu SERIAL" -� **JUNIPER:** +🌐 **GENIEACS (CPE/ROTEADOR):** +• "ver roteador SERIAL" +• "configurar roteador SERIAL" +• "configurar roteador João Silva" + +👥 **JUNIPER:** • "consultar usuario USER" • "desconectar cliente USER" • "listar usuários conectados" @@ -371,14 +376,17 @@ Digite /help para ver todos os comandos disponíveis! const keyboard = [ [ { text: '🏢 TopSapp', callback_data: 'help_topsapp' }, - { text: '� OLT/ONU', callback_data: 'help_olt' } + { text: '📡 OLT/ONU', callback_data: 'help_olt' } ], [ - { text: '👥 Juniper', callback_data: 'help_juniper' }, - { text: '🔐 SSH', callback_data: 'help_ssh' } + { text: '🌐 GenieACS', callback_data: 'help_genieacs' }, + { text: '👥 Juniper', callback_data: 'help_juniper' } + ], + [ + { text: '🔐 SSH', callback_data: 'help_ssh' }, + { text: '🎫 Suporte', callback_data: 'help_suporte' } ], [ - { text: '🎫 Suporte', callback_data: 'help_suporte' }, { text: '🛡️ Admin', callback_data: 'help_admin' } ] ]; @@ -564,6 +572,35 @@ Digite /help para ver todos os comandos disponíveis! • "segunda-feira 08:30"`; break; + case 'genieacs': + helpMessage = `🌐 **GENIEACS - CPE / ROTEADOR** + +**🔍 VER ROTEADOR:** +• "ver roteador SERIAL" +• "ver roteador TAG" +• Exibe: SSID, senha, canais, clientes Wi-Fi, PPPoE, velocidade, IP LAN, DHCP + +**⚙️ CONFIGURAR ROTEADOR:** +• "configurar roteador SERIAL" +• "configurar roteador TAG" +• "configurar roteador João Silva" (busca no TopSapp) +• "configurar roteador 123.456.789-10" (CPF) +• Abre menu interativo para alterar: + - SSID e senha (2.4 GHz e 5 GHz) + - Canal (fixo ou automático) + - DNS WAN e DNS LAN + - DHCP início/fim + - IP LAN e máscara + +**📊 DIAGNÓSTICO:** +• Disponível durante o diagnóstico de serviço +• Exibe: taxa de download/upload, tráfego total, uptime PPPoE, estado do link físico + +**📌 OBSERVAÇÕES:** +• Alterações com CPE online: ✅ aplicadas imediatamente +• Alterações com CPE offline: ⏳ aguardam próximo contato do equipamento`; + break; + case 'admin': helpMessage = `🛡️ **COMANDOS ADMINISTRATIVOS**