fix
This commit is contained in:
parent
cf65b1fd61
commit
cae763089b
@ -354,7 +354,8 @@ watch() {
|
||||
}
|
||||
|
||||
message() {
|
||||
echo "$1" | /root/go/bin/algia dm-post -u 33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 --stdin
|
||||
#Message Alert Module. Configure modules/module-message.sh with actions.
|
||||
bash $MODULES/module-message.sh "$1"
|
||||
}
|
||||
|
||||
test-bots() {
|
||||
@ -486,8 +487,6 @@ elif [ "$1" = "research" ]; then
|
||||
research
|
||||
elif [ "$1" = "stop" ]; then
|
||||
stop
|
||||
elif [ "$1" = "message" ]; then
|
||||
message $2
|
||||
elif [ "$1" = "test" ]; then
|
||||
test-bots
|
||||
elif [ "$1" = "message" ]; then
|
||||
|
9
modules/module-message.sh
Normal file
9
modules/module-message.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
#A Simple Message Module that posts alerts to Nostr or SysLog
|
||||
|
||||
if [ -e /root/go/bin/algia ]; then
|
||||
echo "$1" | /root/go/bin/algia dm-post -u 33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 --stdin
|
||||
else {
|
||||
logger "$1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user