commit 2aa2eb1c0fc35138390c05c5ca42e81d3ea6a6da
parent e583b30bfdc3a9acdc7e81a6f886427f2291a825
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date: Mon, 29 Jul 2024 15:55:28 -0300
fix: make amount payed for the Veblen a number
Diffstat:
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/absurdor b/absurdor
@@ -149,6 +149,7 @@ commands.transfer = commands.record:command("transfer", "Transfer the Veblen")
commands.transfer:argument("who", "Name of the player")
commands.transfer:argument("when", "When the transfer took place")
commands.transfer:argument("payed", "Amount spent on the transfer")
+ :convert(tonumber)
commands.transfer:option("-m", "Message ID where push happened"):target("where")
local args = parser:parse()
diff --git a/log.json b/log.json
@@ -1022,42 +1022,42 @@
"when": 1721670743
},
{
- "payed": "1",
+ "payed": 1,
"what": "transfer",
"when": "Mon, 22 Jul 2024 15:24:18 -0700",
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
- "payed": "2",
+ "payed": 2,
"what": "transfer",
"when": "Mon, 22 Jul 2024 15:24:18 -0700",
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
- "payed": "3",
+ "payed": 3,
"what": "transfer",
"when": "Mon, 22 Jul 2024 15:24:18 -0700",
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
- "payed": "4",
+ "payed": 4,
"what": "transfer",
"when": "Mon, 22 Jul 2024 15:24:18 -0700",
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
- "payed": "5",
+ "payed": 5,
"what": "transfer",
"when": "Mon, 22 Jul 2024 15:24:18 -0700",
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
- "payed": "10",
+ "payed": 10,
"what": "transfer",
"when": "Tue, 23 Jul 2024 14:39:38 +0300",
"where": "bfa9eb76-b8bf-48a3-a032-601eac1b0140@gmail.com",