rewrite: Various bug fixes.

This commit is contained in:
2023-05-25 16:45:54 +03:00
parent 0863d13088
commit fe8cf35885
11 changed files with 237 additions and 21 deletions

View File

@@ -103,7 +103,7 @@ class RoomUI(MessageUI):
# Input checking
response = response.strip()
if not response.isdigit():
if not response.isdigit() or (amount := int(response)) == 0:
await submit.response.send_message(
embed=error_embed(
t(_p(
@@ -113,7 +113,6 @@ class RoomUI(MessageUI):
), ephemeral=True
)
return
amount = int(response)
await submit.response.defer(thinking=True, ephemeral=True)
# Start transaction for deposit