mirror of
https://github.com/jooray/signal-monitoring.git
synced 2026-05-20 01:44:18 +00:00
add simplex-chat support
This commit is contained in:
parent
e1c3af84ff
commit
f29f68fb33
@ -20,6 +20,10 @@ LXMF_NAME="LXMF bot signal-monitoring"
|
|||||||
# propagation node (optional)
|
# propagation node (optional)
|
||||||
LXMF_PROPAGATION="32112312312312312312312312312312"
|
LXMF_PROPAGATION="32112312312312312312312312312312"
|
||||||
|
|
||||||
|
### For simplex-chat command-line utility
|
||||||
|
# Nickname of already connected user (use /c)
|
||||||
|
SIMPLEX_DESTINATION="nickname"
|
||||||
|
|
||||||
# now go to the notify function below, choose which notification mechanism
|
# now go to the notify function below, choose which notification mechanism
|
||||||
# to use.
|
# to use.
|
||||||
|
|
||||||
@ -45,6 +49,8 @@ function notify {
|
|||||||
#matrix-commander --log-level ERROR ERROR -m "$1"
|
#matrix-commander --log-level ERROR ERROR -m "$1"
|
||||||
# LXMF / Reticulum / Sideband
|
# LXMF / Reticulum / Sideband
|
||||||
#echo "$1" | LXMF-NotifyBot.py "${LXMF_DESTINATION}" "${LXMF_NAME}" "${LXMF_PROPAGATION}" > /dev/null
|
#echo "$1" | LXMF-NotifyBot.py "${LXMF_DESTINATION}" "${LXMF_NAME}" "${LXMF_PROPAGATION}" > /dev/null
|
||||||
|
# SimpleX
|
||||||
|
#simplex-chat -e "@${SIMPLEX_DESTINATION} ${1}"
|
||||||
log "Sending notification ${1}"
|
log "Sending notification ${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user