Daniel Gibbs
4 years ago
No known key found for this signature in database
GPG Key ID: 2EBB36015C6D78E2
3 changed files with
5 additions and
4 deletions
-
lgsm/functions/alert_discord.sh
-
lgsm/functions/alert_gotify.sh
-
lgsm/functions/info_messages.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": { |
|
|
|
|
|
@ -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 |
|
|
|
|
|
@ -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(){ |
|
|
|