feat(config): increase maximum failure threshold

This commit is contained in:
marco
2026-09-09 12:19:35 -03:00
parent ace146a8eb
commit 64f597c7ff
2 changed files with 7 additions and 9 deletions
Binary file not shown.
+5 -7
View File
@@ -260,17 +260,15 @@ def main() -> None:
falhas_consecutivas += 1
log(
f"[Sessão {numero_sessao}] Botão não encontrado. "
f"Falhas: {falhas_consecutivas}/{MAXIMO_FALHAS} | Total: {total_cliques}",
f"Falhas: {falhas_consecutivas} | Total: {total_cliques}",
C_RED,
)
if falhas_consecutivas >= MAXIMO_FALHAS:
print()
log(
f"⚠ Máximo de falhas ({MAXIMO_FALHAS}) atingido. Encerrando.",
C_RED + BOLD,
f"[Sessão {numero_sessao}] Re-tentando em {INTERVALO_MINIMO_CLIQUE}s...",
C_YELLOW,
)
log(f"Total de cliques realizados: {total_cliques}", C_YELLOW)
sys.exit(1)
time.sleep(INTERVALO_MINIMO_CLIQUE)
continue
if cliques_na_sessao >= MAXIMO_CLIQUES_POR_SESSAO:
log(