fix minimum bid bug

This commit is contained in:
Lili (Tlapka) 2023-03-21 12:32:19 +01:00
parent 7b31dbcb31
commit 0176b6e84c
1 changed files with 2 additions and 2 deletions

View File

@ -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):