diff --git a/src/services/command.ts b/src/services/command.ts index 9e8566f..d8ce24c 100644 --- a/src/services/command.ts +++ b/src/services/command.ts @@ -172,6 +172,7 @@ export class CommandService { '- Crear: /t n Descripción mañana @Ana', '- Ver grupo: /t ver grupo', '- Ver mis: /t ver mis', + '- Ver todos: /t ver todos', '- Completar: /t x 123', '- Configurar recordatorios: /t configurar daily|weekly|off' ].join('\n'); @@ -183,7 +184,17 @@ export class CommandService { // Listar pendientes if (action === 'ver') { - const scope = (tokens[2] || '').toLowerCase() || (isGroupId(context.groupId) ? 'grupo' : 'mis'); + const scopeRaw = (tokens[2] || '').toLowerCase(); + const SCOPE_ALIASES: Record = { + 'todo': 'todos', + 'todos': 'todos', + 'todas': 'todos', + 'mis': 'mis', + 'mias': 'mis', + 'mías': 'mis', + 'yo': 'mis', + }; + const scope = scopeRaw ? (SCOPE_ALIASES[scopeRaw] || scopeRaw) : (isGroupId(context.groupId) ? 'grupo' : 'mis'); const LIMIT = 10; // Ver sin dueño del grupo actual