feat: centralizar CTA de ayuda en command.ts y añadir a DMs

Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
main
brobert 4 days ago
parent 2d7620fa5d
commit 2d05b6f3e1

@ -37,6 +37,7 @@ export type CommandOutcome = {
export class CommandService {
static dbInstance: Database = db;
private static readonly CTA_HELP: string = ' Tus tareas: /t mias · Todas: /t todas · Info: /t info · Web: /t web';
private static parseNueva(message: string, mentionsNormalized: string[]): {
action: string;
@ -1190,7 +1191,7 @@ export class CommandService {
].filter(Boolean);
responses.push({
recipient: createdBy,
message: ackLines.join('\n'),
message: [ackLines.join('\n'), '', CommandService.CTA_HELP].join('\n'),
mentions: mentionsForSending.length > 0 ? mentionsForSending : undefined
});
@ -1206,7 +1207,7 @@ export class CommandService {
groupName ? `Grupo: ${groupName}` : null,
`- Completar: \`/t x ${createdTask?.display_code}\``,
`- Soltar: \`/t soltar ${createdTask?.display_code}\``
].filter(Boolean).join('\n'),
].filter(Boolean).join('\n') + '\n\n' + CommandService.CTA_HELP,
mentions: [creatorJid]
});
}

Loading…
Cancel
Save