clarify positivity of integer
This commit is contained in:
parent
571aa47aab
commit
8e4d21c02f
|
@ -32,7 +32,7 @@ def handle_redeem(message, user_id):
|
||||||
elif not note:
|
elif not note:
|
||||||
send_chat(f"Cannot redeem {redeem}, no amount of points specified.")
|
send_chat(f"Cannot redeem {redeem}, no amount of points specified.")
|
||||||
elif not note.isdigit():
|
elif not note.isdigit():
|
||||||
send_chat(f"Cannot redeem {redeem}, amount of points is not an integer.")
|
send_chat(f"Cannot redeem {redeem}, amount of points is not a positive integer.")
|
||||||
elif int(note) > points:
|
elif int(note) > points:
|
||||||
send_chat(f"Can't redeem {redeem}, you're donating more points than you have.")
|
send_chat(f"Can't redeem {redeem}, you're donating more points than you have.")
|
||||||
elif int(note) == 0:
|
elif int(note) == 0:
|
||||||
|
|
Loading…
Reference in New Issue