Skip to content

Commit ec63aae

Browse files
committed
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.
1 parent 96acbd7 commit ec63aae

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ iftttalert="off"
6565
ifttttoken="accesstoken"
6666
iftttevent="linuxgsm_alert"
6767

68+
# ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
69+
ntfyalert="off"
70+
ntfytopic="LinuxGSM"
71+
ntfyserver="https://ntfy.sh"
72+
ntfytoken=""
73+
ntfyusername=""
74+
ntfypassword=""
75+
ntfypriority=""
76+
ntfytags=""
77+
6878
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
6979
pushbulletalert="off"
7080
pushbullettoken="accesstoken"

lgsm/modules/alert_slack.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ json=$(
6060
"image_url": "${alerticon}",
6161
"alt_text": "LinuxGSM game icon"
6262
}
63+
}
6364
EOF
6465
)
6566

0 commit comments

Comments
 (0)