From 26f7706b2d0bee08a0c5ce4e3598e29c50750cb4 Mon Sep 17 00:00:00 2001 From: Lili Date: Sat, 24 Sep 2022 21:20:44 +0200 Subject: [PATCH] fix point redeems that end with balance at 0 --- tlapbot/owncast_webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/owncast_webhooks.py b/tlapbot/owncast_webhooks.py index 7a01bc1..2aa0e9b 100644 --- a/tlapbot/owncast_webhooks.py +++ b/tlapbot/owncast_webhooks.py @@ -40,7 +40,7 @@ def owncast_webhook(): send_chat(message) elif "!drink" in data["eventData"]["body"]: points = read_users_points(db, user_id) - if points is not None and points > 60: + if points is not None and points >= 60: if use_points(db, user_id, 60): add_to_redeem_queue(db, user_id, "drink") send_chat("Pitíčko redeemed for 60 points.")