commit bd6f8625d96b114322e2fc8e51df4d43e3954852
parent d1836bd464dee3e3298498bc15517311f2197e45
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date: Tue, 23 Jul 2024 13:04:16 -0300
Fix basic errors in Veblen recording code
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/absurdor b/absurdor
@@ -149,7 +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")
-commands.push:option("-m", "Message ID where push happened"):target("where")
+commands.transfer:option("-m", "Message ID where push happened"):target("where")
local args = parser:parse()
@@ -306,7 +306,6 @@ if args.command == "report" then
end
end
elseif args.command == "record" then
- die(is_duplicate(args.when), "There's already an event recorded at that time.")
if args.what == "push" then
io.write(string.format("%s pushed the boulder at %s\n", args.who, os.date("%Y-%m-%d %H:%M %z", args.when)))
table.insert(log, {