repo: nostr
action: blob
revision: 
path_from: nostr-post.sh
revision_from: refs/heads/master:
path_to: 
revision_to: 
git.thebackupbox.net
nostr
git clone git://git.thebackupbox.net/nostr

blob of:

nostr

/ nostr-post.sh

blob_plain of this file

refs/heads/master:/nostr-post.sh

 #!/usr/bin/env bash
 post="$(nostril --sec "$(cat ~/.config/nostr/me.sec)" --envelope --content "$1" )"
 cat ~/.config/nostr/relays.lst | while read relay;do
 	printf "%s" "$post" | websocat --text --exit-on-eof "$relay"
 done