Browse Source

images

feature/alerts-refactor
Daniel Gibbs 4 years ago
parent
commit
d0432c6c86
  1. BIN
      lgsm/data/gameheaders/mc-header.jpg
  2. BIN
      lgsm/data/gameheaders/mcb-header.jpg
  3. BIN
      lgsm/data/gameicons/mc-icon.png
  4. BIN
      lgsm/data/gameicons/mcb-icon.jpg
  5. 9
      lgsm/functions/alert.sh
  6. 2
      lgsm/functions/alert_discord.sh

BIN
lgsm/data/gameheaders/mc-header.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
lgsm/data/gameheaders/mcb-header.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
lgsm/data/gameicons/mc-icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
lgsm/data/gameicons/mcb-icon.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

9
lgsm/functions/alert.sh

@ -88,10 +88,19 @@ fn_alert_config(){
alertbody="${selfname} has received a new _default.cfg. Check file for changes."
}
# Gather info required for alert.
info_distro.sh
info_game.sh
query_gamedig.sh
# Images
if [ -n "${appid}" ]; then
alertimage="https://steamcdn-a.akamaihd.net/steam/apps/${appid}/header.jpg"
else
alertimage="https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/gameheaders/${shortname}-header.jpg"
fi
alerticon="https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/gameicons/${shortname}-icon.jpg"
# Allow Alert to display gamedig info if available.
if [ "${querystatus}" != "0" ]; then
if [ -n "${maxplayers}" ]; then

2
lgsm/functions/alert_discord.sh

@ -58,7 +58,7 @@ json=$(cat <<EOF
"url": "https://linuxgsm.com/wp-content/uploads/2020/07/minecraft-bedrock-icon.jpg"
},
"image": {
"url": "https://linuxgsm.com/wp-content/uploads/2021/02/mcbe-header.jpg"
"url": "${alertimage}"
},
"footer": {
"text": "Powered by LinuxGSM",

Loading…
Cancel
Save