|
|
|
@ -516,7 +516,7 @@ export class CommandService {
|
|
|
|
|
|
|
|
|
|
|
|
const dueLine = res.task?.due_date ? `${ICONS.date} ${formatDDMM(res.task?.due_date)}` : '';
|
|
|
|
const dueLine = res.task?.due_date ? `${ICONS.date} ${formatDDMM(res.task?.due_date)}` : '';
|
|
|
|
const lines = [
|
|
|
|
const lines = [
|
|
|
|
`${ICONS.complete} ${codeId(id)}`,
|
|
|
|
`${ICONS.complete} ${codeId(id)} completada`,
|
|
|
|
`${res.task?.description || '(sin descripción)'}`,
|
|
|
|
`${res.task?.description || '(sin descripción)'}`,
|
|
|
|
dueLine,
|
|
|
|
dueLine,
|
|
|
|
italic(`Gracias, ${who}.`)
|
|
|
|
italic(`Gracias, ${who}.`)
|
|
|
|
@ -559,7 +559,7 @@ export class CommandService {
|
|
|
|
if (res.status === 'not_found') {
|
|
|
|
if (res.status === 'not_found') {
|
|
|
|
return [{
|
|
|
|
return [{
|
|
|
|
recipient: context.sender,
|
|
|
|
recipient: context.sender,
|
|
|
|
message: `⚠️ Tarea ${id} no encontrada.`
|
|
|
|
message: `⚠️ Tarea ${codeId(id)} no encontrada.`
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (res.status === 'completed') {
|
|
|
|
if (res.status === 'completed') {
|
|
|
|
@ -576,7 +576,7 @@ export class CommandService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const lines = [
|
|
|
|
const lines = [
|
|
|
|
`${ICONS.take} ${codeId(id)}`,
|
|
|
|
`${ICONS.take} Has tomado ${codeId(id)}`,
|
|
|
|
`${res.task?.description || '(sin descripción)'}`,
|
|
|
|
`${res.task?.description || '(sin descripción)'}`,
|
|
|
|
res.task?.due_date ? `${ICONS.date} ${formatDDMM(res.task?.due_date)}` : ''
|
|
|
|
res.task?.due_date ? `${ICONS.date} ${formatDDMM(res.task?.due_date)}` : ''
|
|
|
|
].filter(Boolean);
|
|
|
|
].filter(Boolean);
|
|
|
|
@ -601,7 +601,7 @@ export class CommandService {
|
|
|
|
if (!task) {
|
|
|
|
if (!task) {
|
|
|
|
return [{
|
|
|
|
return [{
|
|
|
|
recipient: context.sender,
|
|
|
|
recipient: context.sender,
|
|
|
|
message: `⚠️ Tarea ${id} no encontrada.`
|
|
|
|
message: `⚠️ Tarea ${codeId(id)} no encontrada.`
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const enforce = String(process.env.GROUP_MEMBERS_ENFORCE || '').toLowerCase() === 'true';
|
|
|
|
const enforce = String(process.env.GROUP_MEMBERS_ENFORCE || '').toLowerCase() === 'true';
|
|
|
|
@ -618,7 +618,7 @@ export class CommandService {
|
|
|
|
if (res.status === 'not_found') {
|
|
|
|
if (res.status === 'not_found') {
|
|
|
|
return [{
|
|
|
|
return [{
|
|
|
|
recipient: context.sender,
|
|
|
|
recipient: context.sender,
|
|
|
|
message: `⚠️ Tarea ${id} no encontrada.`
|
|
|
|
message: `⚠️ Tarea ${codeId(id)} no encontrada.`
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (res.status === 'completed') {
|
|
|
|
if (res.status === 'completed') {
|
|
|
|
@ -639,7 +639,7 @@ export class CommandService {
|
|
|
|
`${ICONS.unassigned} ${codeId(id)}`,
|
|
|
|
`${ICONS.unassigned} ${codeId(id)}`,
|
|
|
|
`${res.task?.description || '(sin descripción)'}`,
|
|
|
|
`${res.task?.description || '(sin descripción)'}`,
|
|
|
|
res.task?.due_date ? `${ICONS.date} ${formatDDMM(res.task?.due_date)}` : '',
|
|
|
|
res.task?.due_date ? `${ICONS.date} ${formatDDMM(res.task?.due_date)}` : '',
|
|
|
|
italic('Queda sin responsable.')
|
|
|
|
italic('queda sin responsable.')
|
|
|
|
].filter(Boolean);
|
|
|
|
].filter(Boolean);
|
|
|
|
return [{
|
|
|
|
return [{
|
|
|
|
recipient: context.sender,
|
|
|
|
recipient: context.sender,
|
|
|
|
|