|
|
|
@ -81,6 +81,14 @@ export async function route(context: RouteContext, deps?: { db: Database }): Pro
|
|
|
|
|
|
|
|
|
|
|
|
// Ayuda (no requiere DB)
|
|
|
|
// Ayuda (no requiere DB)
|
|
|
|
if (action === 'ayuda') {
|
|
|
|
if (action === 'ayuda') {
|
|
|
|
|
|
|
|
// Métrica de alias "info" (compatibilidad con legacy)
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (rawAction === 'info' || rawAction === '?') {
|
|
|
|
|
|
|
|
Metrics.inc('commands_alias_used_total', 1, { action: 'info' });
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch {}
|
|
|
|
|
|
|
|
try { ResponseQueue.setOnboardingAggregatesMetrics(); } catch {}
|
|
|
|
|
|
|
|
|
|
|
|
const isAdvanced = (tokens[2] || '').toLowerCase() === 'avanzada';
|
|
|
|
const isAdvanced = (tokens[2] || '').toLowerCase() === 'avanzada';
|
|
|
|
const message = isAdvanced
|
|
|
|
const message = isAdvanced
|
|
|
|
? getFullHelp()
|
|
|
|
? getFullHelp()
|
|
|
|
@ -150,6 +158,7 @@ export async function route(context: RouteContext, deps?: { db: Database }): Pro
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Desconocido → ayuda rápida
|
|
|
|
// Desconocido → ayuda rápida
|
|
|
|
|
|
|
|
try { Metrics.inc('commands_unknown_total'); } catch {}
|
|
|
|
return [{
|
|
|
|
return [{
|
|
|
|
recipient: context.sender,
|
|
|
|
recipient: context.sender,
|
|
|
|
message: buildUnknownHelp()
|
|
|
|
message: buildUnknownHelp()
|
|
|
|
|