noteguard

the nostr relay spam guardian
git clone git://jb55.com/noteguard
Log | Files | Refs | README | LICENSE

delayed-nostril (219B)


      1 #!/usr/bin/env sh
      2 
      3 while true
      4 do
      5 	note="$(nostril --silent --content hello)"
      6 	echo "{\"type\": \"new\",\"receivedAt\":12345,\"sourceType\":\"IP4\",\"sourceInfo\": \"127.0.0.2\",\"event\":$note}"
      7 
      8 	sleep ${1:-0.1}
      9 done
     10