publish nostr note from note.txt ⎗ ✓ 1 2 3 4 5 6function notep(){ p=$(cat ~/.config/nostr/config.json | jq -r .privatekey) relays=$(noscl relay | grep -oP "^wss://[^:]+" | while read r; do echo -r $r; done) tags=$(cat note.txt | grep -oP "#\S+" | while read t; do echo "-t t|${t:1}"; done) nostr-tool -p $p $relays custom-event --kind 1 $tags -c "$(cat note.txt)" }
Warning LINK You are about to visit a link which has been flagged with the above content warnings. Do you wish to continue? Continue Cancel