sistema completo: ordens1-6, docs, envio 5/6, revisao de qualidade

This commit is contained in:
Marco
2026-09-17 10:39:30 -03:00
parent 93ab0a83fd
commit 3649f91144
14 changed files with 2510 additions and 2184 deletions
+4 -4
View File
@@ -30,7 +30,7 @@ HORA_FIM=$(grep_val HORA_FIM)
# Configuração de cada envio automático
declare -a ENVIAR_ATIVO ENVIAR_INTERVALO ENVIAR_ARQUIVO ENVIAR_QUANTIDADE
for n in 1 2 3; do
for n in 1 2 3 4 5 6; do
ENVIAR_ATIVO[$n]=$(grep_val "ENVIAR${n}_ATIVO")
ENVIAR_INTERVALO[$n]=$(grep_val "ENVIAR${n}_INTERVALO_MINUTOS")
ENVIAR_ARQUIVO[$n]=$(grep_val "ENVIAR${n}_ARQUIVO_ORDENS")
@@ -47,7 +47,7 @@ if [ -z "$TELEGRAM_CHAT_ID" ] || [ "$TELEGRAM_CHAT_ID" = "seu_chat_id_aqui" ]; t
fi
# Validação dos arquivos de ordens
for n in 1 2 3; do
for n in 1 2 3 4 5 6; do
if [ "${ENVIAR_ATIVO[$n]}" = "s" ] && [ ! -f "${ENVIAR_ARQUIVO[$n]}" ]; then
echo "[!] Arquivo de ordens '${ENVIAR_ARQUIVO[$n]}' não encontrado (envio automático $n)"
exit 1
@@ -55,7 +55,7 @@ for n in 1 2 3; do
done
export TELEGRAM_TOKEN TELEGRAM_CHAT_ID SEXO IDADE HORA_INICIO HORA_FIM
for n in 1 2 3; do
for n in 1 2 3 4 5 6; do
export "ENVIAR${n}_ATIVO=${ENVIAR_ATIVO[$n]}"
export "ENVIAR${n}_INTERVALO_MINUTOS=${ENVIAR_INTERVALO[$n]}"
export "ENVIAR${n}_ARQUIVO_ORDENS=${ENVIAR_ARQUIVO[$n]}"
@@ -99,7 +99,7 @@ echo "[+] Iniciando sistema de ordens..."
echo " Sexo: ${SEXO:-masculino} | Idade: ${IDADE:-30}"
echo " Horário: ${HORA_INICIO:-08:00} - ${HORA_FIM:-22:00}"
echo ""
for n in 1 2 3; do
for n in 1 2 3 4 5 6; do
status="❌ DESATIVADO"
if [ "${ENVIAR_ATIVO[$n]}" = "s" ]; then
status="✅ ATIVO"