diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-02-02 12:56:13 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-02-02 12:56:13 +0100 |
commit | 5b62b58a3aa9f3d302c44d2d27392e61f21a5442 (patch) | |
tree | 3da4939428be1bbc771d3d9d9600e9124b1e6475 /skripti/poprbot.py | |
parent | poprbot (diff) | |
download | r-5b62b58a3aa9f3d302c44d2d27392e61f21a5442.tar r-5b62b58a3aa9f3d302c44d2d27392e61f21a5442.tar.gz r-5b62b58a3aa9f3d302c44d2d27392e61f21a5442.tar.bz2 r-5b62b58a3aa9f3d302c44d2d27392e61f21a5442.tar.lz r-5b62b58a3aa9f3d302c44d2d27392e61f21a5442.tar.xz r-5b62b58a3aa9f3d302c44d2d27392e61f21a5442.tar.zst r-5b62b58a3aa9f3d302c44d2d27392e61f21a5442.zip |
Diffstat (limited to '')
-rwxr-xr-x | skripti/poprbot.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/skripti/poprbot.py b/skripti/poprbot.py index c10fdbf..a32101d 100755 --- a/skripti/poprbot.py +++ b/skripti/poprbot.py @@ -58,6 +58,7 @@ def main(): return sleep(180) sleep((kdaj-datetime.now()).total_seconds()-3) + retries = 0 while True: prijavi_se(s, event, slotid) if (kdaj-datetime.now()).total_seconds() < -3: @@ -66,6 +67,10 @@ def main(): print("Prijavljeni ste.") return else: + if ev["slots"][slot]["bookable"] == False: + retries += 1 + if retries < 10: + continue print("NAPAKA! Niste prijavljeni.") return prijavi_se(s, event, slotid) |