Browse Source

update gotify

feature/alerts-refactor
Daniel Gibbs 4 years ago
parent
commit
8b5055fa68
No known key found for this signature in database GPG Key ID: 2EBB36015C6D78E2
  1. 2
      lgsm/functions/alert_discord.sh
  2. 2
      lgsm/functions/alert_gotify.sh
  3. 5
      lgsm/functions/info_messages.sh

2
lgsm/functions/alert_discord.sh

@ -56,7 +56,7 @@ json=$(cat <<EOF
},
{
"name": "Trigger Message",
"value": "${alerttriggermessage} \n More info: ${alerturl}"
"value": "${alerttriggermessage} \n\n More info: ${alerturl}"
}
],
"thumbnail": {

2
lgsm/functions/alert_gotify.sh

@ -10,7 +10,7 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
json=$(cat <<EOF
{
"title": "${alertemoji} ${alerttitle} ${alertemoji}",
"message": "Server name\n${servername}\n\nTrigger Message\n${alerttriggermessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\nMore info\n${alerturl}",
"message": "Server 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${alerturl}",
"priority": 5
}
EOF

5
lgsm/functions/info_messages.sh

@ -62,6 +62,9 @@ fn_info_message_head(){
echo -e "Server name"
echo -e "${servername}"
echo -e ""
echo -e "Trigger Message"
echo -e "${alerttriggermessage}"
echo -e ""
echo -e "Game"
echo -e "${gamename}"
echo -e ""
@ -79,8 +82,6 @@ fn_info_message_head(){
echo -e ""
echo -e "Version"
echo -e "${alertversion}"
echo -e "Information"
echo -e "${alerttriggermessage}"
}
fn_info_message_distro(){

Loading…
Cancel
Save