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 # Update failure alert
fn_alert_update_failed() { fn_alert_update_failed() {
# Expect updatefailureexpected (target version) and updatefailuregot (actual localbuild) if set # Expect updatefailureexpected (target version) and updatefailuregot (actual localbuild) if set
local expected="${updatefailureexpected:-${remotebuild:-unknown}}" local updateexpected="${updatefailureexpected:-${remotebuild:-unknown}}"
local got="${updatefailuregot:-${localbuild:-unknown}}" local updategot="${updatefailuregot:-${localbuild:-unknown}}"
fn_script_log_error "Sending alert: ${selfname} update failed: expected ${expected}, got ${got}" fn_script_log_error "Sending alert: ${selfname} update failed: expected ${updateexpected}, got ${updategot}"
alertaction="Update Failed" alertaction="Update Failed"
alertemoji="❌" alertemoji="❌"
alertsound="2" 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 # Red
alertcolourhex="#cd0000" alertcolourhex="#cd0000"
alertcolourdec="13434880" alertcolourdec="13434880"

1
lgsm/modules/alert_discord.sh

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

Loading…
Cancel
Save