Browse Source

remove inline

pull/4854/head
Daniel Gibbs 7 months ago
parent
commit
7abedc4dcc
Failed to extract signature
  1. 8
      lgsm/modules/alert.sh
  2. 1
      lgsm/modules/alert_discord.sh

8
lgsm/modules/alert.sh

@ -112,13 +112,13 @@ fn_alert_update() {
# Update failure alert
fn_alert_update_failed() {
# Expect updatefailureexpected (target version) and updatefailuregot (actual localbuild) if set
local expected="${updatefailureexpected:-${remotebuild:-unknown}}"
local got="${updatefailuregot:-${localbuild:-unknown}}"
fn_script_log_error "Sending alert: ${selfname} update failed: expected ${expected}, got ${got}"
local updateexpected="${updatefailureexpected:-${remotebuild:-unknown}}"
local updategot="${updatefailuregot:-${localbuild:-unknown}}"
fn_script_log_error "Sending alert: ${selfname} update failed: expected ${updateexpected}, got ${updategot}"
alertaction="Update Failed"
alertemoji="❌"
alertsound="2"
alertmessage="${selfname} update failed: expected ${expected}, got ${got}. Manual intervention required."
alertmessage="${selfname} update failed: expected ${updateexpected}, got ${updategot}. Manual intervention required."
# Red
alertcolourhex="#cd0000"
alertcolourdec="13434880"

1
lgsm/modules/alert_discord.sh

@ -57,7 +57,6 @@ if [ -n "${querytype}" ]; then
{
"name": "Is my Game Server Online?",
"value": "https://ismygameserver.online/${imgsoquerytype}/${alertip}:${queryport}",
"inline": true
}
EOF
)

Loading…
Cancel
Save