firewall/modules/module-message.sh
Your Name 7c4ff30532 fix
2024-09-24 22:39:16 -06:00

11 lines
273 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"
}