working milestones prototype in dashboard

This commit is contained in:
2023-03-14 16:26:04 +01:00
parent 68b8588c76
commit cb574618a6
3 changed files with 73 additions and 31 deletions
+2 -2
View File
@@ -51,8 +51,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) > points:
send_chat(f"Can't redeem {redeem}, you don't have enough points.2")
else:
add_to_milestone(db, redeem, int(note))
else: