ajuda: add genieacs functions

Signed-off-by: Rodrigo Bertoldo de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
rodrigo committed 2026-04-03 12:03:58 -03:00
1 parent 24dad8954b
commit d8badf1fde
1 file changed
+42 -5
+42 -5
View File
@@ -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**