Skip to content

Commit

Permalink
fix: add missing imgso filter if not required in discord alert
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Jan 8, 2025
1 parent 8d17622 commit 7a0fc70
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lgsm/modules/alert_discord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,25 @@ json=$(
"name": "Server Time",
"value": "$(date)",
"inline": true
},
}
EOF
)

if [ -n "${querytype}" ]; then
json+=$(
cat << EOF
,
{
"name": "Is my Game Server Online?",
"value": "https://ismygameserver.online/${imgsoquerytype}/${alertip}:${queryport}",
"inline": true
}
EOF
)
fi

json+=$(
cat << EOF
],
"footer": {
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg",
Expand Down

0 comments on commit 7a0fc70

Please sign in to comment.