mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-29 19:21:49 +01:00
two new scripts making use of stdin input
This commit is contained in:
parent
2edf5bb361
commit
9085c8a64a
6
scripts/announce.sh
Normal file
6
scripts/announce.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# writes hello to a group
|
||||
|
||||
channel=test99
|
||||
{ echo -e "3\n1\n${channel}\nHello, this is a random test.\nx\nx\nx" ; cat /dev/stdin; } | ./nostr_console_ubuntu_x64 --prikey=`openssl rand -hex 32`
|
9
scripts/gotoChannel.sh
Normal file
9
scripts/gotoChannel.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# tested on Linux/Ubuntu
|
||||
# will go to the channel mentioned in this variable; change it to go to that channel
|
||||
# arguments passed to this script are passed to the nostr_console
|
||||
|
||||
channel=52ca
|
||||
{ echo -e "3\n1\n${channel}" ; cat /dev/stdin; } | ./nostr_console_ubuntu_x64 $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user