Browse Source

alerticon

feature/alerts-refactor
Daniel Gibbs 4 years ago
parent
commit
76f6979f1e
  1. 2
      lgsm/functions/alert.sh
  2. 2
      lgsm/functions/alert_discord.sh

2
lgsm/functions/alert.sh

@ -99,7 +99,7 @@ if [ -n "${appid}" ]; then
else else
alertimage="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/gameheaders/${shortname}-header.jpg" alertimage="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/gameheaders/${shortname}-header.jpg"
fi fi
alerticon="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/gameicons/${shortname}-icon.jpg" alerticon="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/gameicons/${shortname}-icon.png"
# Allow Alert to display gamedig info if available. # Allow Alert to display gamedig info if available.
if [ "${querystatus}" != "0" ]; then if [ "${querystatus}" != "0" ]; then

2
lgsm/functions/alert_discord.sh

@ -55,7 +55,7 @@ json=$(cat <<EOF
} }
], ],
"thumbnail": { "thumbnail": {
"url": "https://linuxgsm.com/wp-content/uploads/2020/07/minecraft-bedrock-icon.jpg" "url": "${alerticon}"
}, },
"image": { "image": {
"url": "${alertimage}" "url": "${alertimage}"

Loading…
Cancel
Save