Browse Source

fix(alert_slack): add missing closing brace on section object

The 'section' block containing 'fields' and 'accessory' was missing its
closing '}' before EOF, producing malformed JSON and breaking all Slack
alerts silently (jq -c . would fail on the payload).

Also add missing ntfy alert settings to tf2cserver _default.cfg for
consistency with other server configs.
feat/matrix-alerts
Daniel Gibbs 2 months ago
parent
commit
ec63aae5ef
Failed to extract signature
  1. 10
      lgsm/config-default/config-lgsm/tf2cserver/_default.cfg
  2. 1
      lgsm/modules/alert_slack.sh

10
lgsm/config-default/config-lgsm/tf2cserver/_default.cfg

@ -65,6 +65,16 @@ iftttalert="off"
ifttttoken="accesstoken"
iftttevent="linuxgsm_alert"
# ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
ntfyalert="off"
ntfytopic="LinuxGSM"
ntfyserver="https://ntfy.sh"
ntfytoken=""
ntfyusername=""
ntfypassword=""
ntfypriority=""
ntfytags=""
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"

1
lgsm/modules/alert_slack.sh

@ -60,6 +60,7 @@ json=$(
"image_url": "${alerticon}",
"alt_text": "LinuxGSM game icon"
}
}
EOF
)

Loading…
Cancel
Save