registrar

Files related to my duties as Registrar of Agora Nomic
git clone git://juanmeleiro.mat.br/registrar
Log | Files | Refs | README

commit 0e4b4a602f504e6b38e36d9a0e89ba8bbf441c8c
parent a059fee2909938717c4e6db57ffa21b18ff1c669
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date:   Mon,  4 Dec 2023 10:59:42 -0300

Fix date as string

Diffstat:
Mlog.json | 4++--
Mregistrar | 2++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/log.json b/log.json @@ -1 +1 @@ -[{"who":"G.","when":1693414665,"where":"CANXr1wcHaBVduTSbs0vChGeCyirojBdXM_5gnkZtiy4Sfz05_w@mail.gmail.com","what":"deregister"},{"what":"monthly","when":1693578212},{"what":"weekly","when":1693917792},{"what":"weekly","when":1694441476},{"what":"weekly","when":1695039779},{"what":"weekly","when":1695655568},{"what":"monthly","when":1696278032},{"what":"weekly","when":1696278070},{"who":"Zipzap","what":"register","whence":"itszipzap@gmail.com","when":1696396476,"where":"2c68ba6a-25ad-44f0-958f-9442fe362cc9@gmail.com"},{"who":"4st","what":"readdress","when":1696466766,"whither":"4st.nomic@gmail.com","where":"CAA-e8fPG84yr02AkHVZNxRUKae30WVY4b5RwvwHC_uq3JaW0nw@mail.gmail.com"},{"who":"Yachay Wayllukuq","when":1696682410,"what":"deactivation"},{"who":"innalienableWright","when":1696682410,"what":"deactivation"},{"who":"beokirby","when":1696682410,"what":"deactivation"},{"what":"weekly","when":1696883054},{"who":"nix","what":"register","whence":"agora@nullarch.com","when":1697149218,"where":"f4ca6dc6-fe42-4e95-85be-ffecb029625c@nullarch.com"},{"what":"weekly","when":1697463380},{"who":"Aspen","when":1698072567,"what":"rename","whither":"Aris"},{"what":"weekly","when":1698073979},{"who":"Yachay Wayllukuq","when":1698514905,"what":"activation"},{"what":"weekly","when":1698694640},{"what":"monthly","when":1698847677},{"what":"weekly","when":1699285474},{"who":"Crystalizedmire","what":"register","whence":"awwellth@gmail.com","when":1699657655,"where":"CANT-9FSBFtvcYvszEt=TgfjPpRVgTFGhFeMug_fF2ZM-UzR4iQ@mail.gmail.com"},{"what":"weekly","when":1699916249},{"who":"Goren Barak","what":"register","whence":"gorenbk@riseup.net","when":1700320223,"where":"be25339c0710541a2405e0066a0fafb5@riseup.net"},{"what":"weekly","when":1700586523},{"who":"Ben","what":"register","whence":"amdwagora@gmail.com","when":1701035681,"where":"PH7PR11MB75511B0CEE6CD1739C612188A1BEA@PH7PR11MB7551.namprd11.prod.outlook.com"},{"what":"weekly","when":1701116333},{"what":"monthly","when":1701448122},{"who":"jimmy","what":"register","when":"1701598418","whence":"returnofjimmy@gmail.com","where":"CAD727yT4L4WDJ+8BhGb2JWLjcjXjRaJRRpe-sn7xtdr7Mg6wVQ@mail.gmail.com"},{"who":"jimmy","what":"rename","when":1701695445,"where":"CAD727yT4L4WDJ+8BhGb2JWLjcjXjRaJRRpe-sn7xtdr7Mg6wVQ@mail.gmail.com","whither":"Jimmy"}] -\ No newline at end of file +[{"who":"G.","when":1693414665,"where":"CANXr1wcHaBVduTSbs0vChGeCyirojBdXM_5gnkZtiy4Sfz05_w@mail.gmail.com","what":"deregister"},{"what":"monthly","when":1693578212},{"what":"weekly","when":1693917792},{"what":"weekly","when":1694441476},{"what":"weekly","when":1695039779},{"what":"weekly","when":1695655568},{"what":"monthly","when":1696278032},{"what":"weekly","when":1696278070},{"who":"Zipzap","what":"register","whence":"itszipzap@gmail.com","when":1696396476,"where":"2c68ba6a-25ad-44f0-958f-9442fe362cc9@gmail.com"},{"who":"4st","what":"readdress","when":1696466766,"whither":"4st.nomic@gmail.com","where":"CAA-e8fPG84yr02AkHVZNxRUKae30WVY4b5RwvwHC_uq3JaW0nw@mail.gmail.com"},{"who":"Yachay Wayllukuq","when":1696682410,"what":"deactivation"},{"who":"innalienableWright","when":1696682410,"what":"deactivation"},{"who":"beokirby","when":1696682410,"what":"deactivation"},{"what":"weekly","when":1696883054},{"who":"nix","what":"register","whence":"agora@nullarch.com","when":1697149218,"where":"f4ca6dc6-fe42-4e95-85be-ffecb029625c@nullarch.com"},{"what":"weekly","when":1697463380},{"who":"Aspen","when":1698072567,"what":"rename","whither":"Aris"},{"what":"weekly","when":1698073979},{"who":"Yachay Wayllukuq","when":1698514905,"what":"activation"},{"what":"weekly","when":1698694640},{"what":"monthly","when":1698847677},{"what":"weekly","when":1699285474},{"who":"Crystalizedmire","what":"register","whence":"awwellth@gmail.com","when":1699657655,"where":"CANT-9FSBFtvcYvszEt=TgfjPpRVgTFGhFeMug_fF2ZM-UzR4iQ@mail.gmail.com"},{"what":"weekly","when":1699916249},{"who":"Goren Barak","what":"register","whence":"gorenbk@riseup.net","when":1700320223,"where":"be25339c0710541a2405e0066a0fafb5@riseup.net"},{"what":"weekly","when":1700586523},{"who":"Ben","what":"register","whence":"amdwagora@gmail.com","when":1701035681,"where":"PH7PR11MB75511B0CEE6CD1739C612188A1BEA@PH7PR11MB7551.namprd11.prod.outlook.com"},{"what":"weekly","when":1701116333},{"what":"monthly","when":1701448122},{"who":"jimmy","what":"register","when":1701598418,"whence":"returnofjimmy@gmail.com","where":"CAD727yT4L4WDJ+8BhGb2JWLjcjXjRaJRRpe-sn7xtdr7Mg6wVQ@mail.gmail.com"},{"who":"jimmy","what":"rename","when":1701695445,"where":"CAD727yT4L4WDJ+8BhGb2JWLjcjXjRaJRRpe-sn7xtdr7Mg6wVQ@mail.gmail.com","whither":"Jimmy"}] +\ No newline at end of file diff --git a/registrar b/registrar @@ -34,6 +34,7 @@ local register_cmd = parser:command("register", "Register player") register_cmd:argument("name", "The name of the player") register_cmd:argument("contact", "URL (or plain email address) to contact player") register_cmd:argument("date", "Time stamp of registration (seconds after epoch)") + :convert(tonumber) register_cmd:option("-m", "Message ID of registration (without 'message://' prefix)") local birthday_cmd = parser:command("birthday", "Announce player's birthday") @@ -60,6 +61,7 @@ local readdress_cmd = parser:command("readdress", "Change player's address") readdress_cmd:argument("who", "Player to be readdressed") readdress_cmd:argument("whither", "New address") readdress_cmd:argument("when", "When the message was received") + :convert(tonumber) readdress_cmd:option("-m", "Message ID of readdressing (without 'message://' prefix)") -- Deserialize