mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-08-09 08:31:44 +02:00
two new scripts making use of stdin input
This commit is contained in:
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 $@
|
||||
|
Reference in New Issue
Block a user