This commit is contained in:
Your Name 2024-09-24 22:38:26 -06:00
parent cf65b1fd61
commit cae763089b
2 changed files with 11 additions and 3 deletions

View File

@ -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

View 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"
}