From 0176b6e84c67f813599bfa666fc92e24a396004c Mon Sep 17 00:00:00 2001 From: Lili Date: Tue, 21 Mar 2023 12:32:19 +0100 Subject: [PATCH] fix minimum bid bug --- tlapbot/redeems_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tlapbot/redeems_handler.py b/tlapbot/redeems_handler.py index 97d389b..d320b3d 100644 --- a/tlapbot/redeems_handler.py +++ b/tlapbot/redeems_handler.py @@ -54,8 +54,8 @@ def handle_redeem(message, user_id): send_chat(f"Cannot redeem {redeem}, no amount of points specified.") elif not note.isdigit(): send_chat(f"Cannot redeem {redeem}, amount of points is not an integer.") - elif int(note) > points: - send_chat(f"Can't redeem {redeem}, you don't have enough points.") + elif int(note) < price: + send_chat(f"Can't redeem {redeem}, your donation is below the minimum bid of {price}.") elif add_to_milestone(db, user_id, redeem, int(note)): send_chat(f"Succesfully donated to {redeem} milestone!") if check_apply_milestone_completion(db, redeem):