feat: actualizar mensajes de uso y grupo activo a español en command.ts

Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
webui
brobert 2 weeks ago
parent 36f98d09dc
commit 9c47359b85

@ -288,7 +288,7 @@ export class CommandService {
if (!isGroupId(context.groupId)) {
return [{
recipient: context.sender,
message: '_Este comando se usa en grupos. Prueba:_ `/t ver mis`'
message: ' _Este comando se usa en grupos. Prueba:_ `/t ver mis`'
}];
}
if (!GroupSyncService.isGroupActive(context.groupId)) {
@ -447,13 +447,13 @@ export class CommandService {
if (!isGroupId(context.groupId)) {
return [{
recipient: context.sender,
message: 'Este comando se usa en grupos. Prueba: `/t ver mis`'
message: ' _Este comando se usa en grupos. Prueba:_ `/t ver mis`'
}];
}
if (!GroupSyncService.isGroupActive(context.groupId)) {
return [{
recipient: context.sender,
message: '⚠️ Este grupo no está activo.'
message: '⚠️ _Este grupo no está activo._'
}];
}
// Enforcement opcional basado en membresía si la snapshot es fresca
@ -935,7 +935,7 @@ export class CommandService {
if (!m) {
return [{
recipient: context.sender,
message: 'Uso: `/t configurar daily|l-v|weekly|off [HH:MM]`'
message: 'Uso: `/t configurar diario|l-v|semanal|off [HH:MM]`'
}];
}
const hh = Math.max(0, Math.min(23, parseInt(m[1], 10)));
@ -945,7 +945,7 @@ export class CommandService {
if (!freq) {
return [{
recipient: context.sender,
message: 'Uso: `/t configurar daily|l-v|weekly|off [HH:MM]`'
message: 'Uso: `/t configurar diario|l-v|semanal|off [HH:MM]`'
}];
}
const ensured = ensureUserExists(context.sender, this.dbInstance);

Loading…
Cancel
Save