what the fuck is this shit syntax
Some checks failed
Build and publish the docker image / build (push) Failing after 16s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-01-21 05:38:43 +03:00
parent f3c2ac1417
commit 410349f615
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -187,13 +187,16 @@ proc setRateLimit*(account: GuestAccount; api: Api; remaining, reset: int) =
proc initAccountPool*(cfg: Config) =
let path = cfg.accountsFile
let is_jsonl = path.endswith(".jsonl")
let path_exists = fileExists(path)
enableLogging = cfg.enableDebug
if !path.endswith(".jsonl"):
if !is_jsonl:
log "Accounts file should be formated with JSONL"
quit 1
if !fileExists(path):
if !path_exists:
log "Failed to access the accounts file (", path, ")"
quit 1