firewall/modules/module-message.sh
Your Name c357c25f69 fix
2024-09-25 08:42:03 -06:00

11 lines
275 B
Bash

#!/bin/bash
#A Simple Message Module that posts alerts to Nostr or SysLog
NOSTR_USER="33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940"
if [ -e /root/go/bin/algia ]; then
echo "$1" | /root/go/bin/algia dm-post -u $NOSTR_USER -stdin
else {
logger "$1"
}
fi