|
|
|
|
@ -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);
|
|
|
|
|
|