Browse Source

tabs

pull/3051/head
Daniel Gibbs 5 years ago
parent
commit
c03378a2fd
  1. 32
      lgsm/functions/alert_rocketchat.sh

32
lgsm/functions/alert_rocketchat.sh

@ -13,28 +13,28 @@ fi
json=$(cat <<EOF
{
"alias":"LinuxGSM",
"text":"*${alertemoji} ${alertsubject} ${alertemoji}* + \n ${escaped_alertbody}",
"attachments":[
"alias": "LinuxGSM",
"text": "*${alertemoji} ${alertsubject} ${alertemoji}* + \n ${escaped_alertbody}",
"attachments": [
{
"title":"Linuxgsm Alert",
"text":"Hostname: ${HOSTNAME}",
"color":"#36a64f",
"fields":[
"title": "Linuxgsm Alert",
"text": "Hostname: ${HOSTNAME}",
"color": "#36a64f",
"fields": [
{
"short":true,
"title":"Game:",
"value":"${gamename}"
"short": true,
"title": "Game:",
"value": "${gamename}"
},
{
"short":true,
"title":"Server IP:",
"value":"${alertip}:${port}"
"short": true,
"title": "Server IP:",
"value": "${alertip}:${port}"
},
{
"short":true,
"title":"Server Name:",
"value":"${escaped_servername}"
"short": true,
"title": "Server Name:",
"value": "${escaped_servername}"
}
]
}

Loading…
Cancel
Save