From 6552cce50e5d01202079fb678348b842cb4843a8 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 17 Oct 2021 23:23:47 +0100 Subject: [PATCH] alerts update --- lgsm/functions/alert_gotify.sh | 2 +- lgsm/functions/alert_ifttt.sh | 2 +- lgsm/functions/alert_pushbullet.sh | 2 +- lgsm/functions/alert_pushover.sh | 2 +- lgsm/functions/alert_slack.sh | 27 +++++++++++++++++---------- lgsm/functions/alert_telegram.sh | 2 +- 6 files changed, 22 insertions(+), 15 deletions(-) diff --git a/lgsm/functions/alert_gotify.sh b/lgsm/functions/alert_gotify.sh index 5dc24af31..f08ddf5cd 100644 --- a/lgsm/functions/alert_gotify.sh +++ b/lgsm/functions/alert_gotify.sh @@ -10,7 +10,7 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" json=$(cat <Server name
${servername}

Trigger Message
${alerttriggermessage}

Game
${gamename}

Current Players
${alertplayers}

Map
${alertmap}

Server IP
${alertip}:${port}

Hostname
${HOSTNAME}

Version
${alertversion}

More Info
${alertmoreinfourl}" + "value3": "Server name
${servername}

Trigger Message
${alerttriggermessage}

Game
${gamename}

Map
${alertmap}

Current Players
${alertplayers}

Version
${alertversion}

Country
${country}

Server IP
${alertip}:${port}

Hostname
${HOSTNAME}

More Info
${alertmoreinfourl}" } EOF ) diff --git a/lgsm/functions/alert_pushbullet.sh b/lgsm/functions/alert_pushbullet.sh index 3f612f2af..cb47f881f 100755 --- a/lgsm/functions/alert_pushbullet.sh +++ b/lgsm/functions/alert_pushbullet.sh @@ -12,7 +12,7 @@ json=$(cat <${alertemoji} ${alerttitle} ${alertemoji}\n\nServer name\n${servername}\n\nTrigger Message\n${alerttriggermessage}\n\nGame\n${gamename}\n\nCurrent Players\n${alertplayers}\n\nMap\n${alertmap}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\nVersion\n${alertversion}\n\nMore info\n${alertmoreinfourl}", + "text": "${alertemoji} ${alerttitle} ${alertemoji}\n\nServer name\n${servername}\n\nTrigger Message\n${alerttriggermessage}\n\nGame\n${gamename}\n\nMap\n${alertmap}\n\nCurrent Players\n${alertplayers}\n\nVersion\n${alertversion}\n\nCountry\n${country}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\nMore info\n${alertmoreinfourl}", "disable_web_page_preview": "yes" } EOF