mirror of
https://github.com/jooray/nostr-scripts.git
synced 2026-01-03 06:15:31 +00:00
I was not able to run the previous code, but I'm running bash in Cygwin so it is possible it was a local problem.
12 lines
394 B
Bash
12 lines
394 B
Bash
#!/bin/bash
|
|
|
|
# Take a file as argument and publish it to relays mentioned in the for cycle below
|
|
# File should be a jsonl file with one json object per line
|
|
|
|
for RELAY in wss://relay.nostrplebs.com wss://relay.nostr.band
|
|
do
|
|
echo "Publishing to ${RELAY}"
|
|
# We can post to different relays in parallel, they don't know about each other
|
|
python3 slow-post.py "${RELAY}" < "${1}" &
|
|
done
|