2024-09-24 22:38:26 -06:00
|
|
|
#!/bin/bash
|
|
|
|
#A Simple Message Module that posts alerts to Nostr or SysLog
|
2024-09-24 22:39:16 -06:00
|
|
|
NOSTR_USER="33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940"
|
2024-09-24 22:38:26 -06:00
|
|
|
|
|
|
|
if [ -e /root/go/bin/algia ]; then
|
2024-09-24 22:39:16 -06:00
|
|
|
echo "$1" | /root/go/bin/algia dm-post -u $NOSTR_USER -stdin
|
2024-09-24 22:38:26 -06:00
|
|
|
else {
|
|
|
|
logger "$1"
|
|
|
|
}
|
|
|
|
|