fix point redeems that end with balance at 0

This commit is contained in:
Lili (Tlapka) 2022-09-24 21:20:44 +02:00
parent 0bdb7ce2dd
commit 26f7706b2d
1 changed files with 1 additions and 1 deletions

View File

@ -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.")