registrar

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

deregistrations.jq (383B)


      1 [
      2 .[].history[] |
      3 select((.protected | not)
      4        and has("active")
      5        and (.active | not)
      6        and (.latest |
      7             strptime("%Y-%m-%d") |
      8             mktime < (now - 5184000)))
      9 ] |
     10 (
     11 "Cc: \([.[] | "\(.contact)" | gsub(" at "; "@") | gsub(" dot "; ".")] | join(", "))\n",
     12 "I intend, without 3 objections, to deregister the following players:\n",
     13 (.[] | "- \(.name)")
     14 )