From dec428d2bdfdffafb61fb13b1dff4134f6139e96 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 17 Oct 2023 20:53:39 +0100 Subject: [PATCH] title --- lgsm/modules/alert.sh | 15 +-------------- lgsm/modules/alert_discord.sh | 2 +- lgsm/modules/alert_pushbullet.sh | 4 ++-- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/lgsm/modules/alert.sh b/lgsm/modules/alert.sh index 97460aee66..1f747e5871 100644 --- a/lgsm/modules/alert.sh +++ b/lgsm/modules/alert.sh @@ -32,7 +32,6 @@ fn_alert_test() { alertaction="Tested" alertemoji="๐Ÿšง" alertsound="1" - alerturl="not enabled" alertmessage="Testing ${selfname} LinuxGSM Alert. No action to be taken." # Green alertcolourhex="#cdcd00" @@ -45,7 +44,6 @@ fn_alert_stopped() { alertaction="Stopped" alertemoji="โŒ" alertsound="1" - alerturl="not enabled" alertmessage="${selfname} has stopped." # Red alertcolourhex="#cd0000" @@ -57,7 +55,6 @@ fn_alert_started() { alertaction="Started" alertemoji="โœ…" alertsound="1" - alerturl="not enabled" alertmessage="${selfname} has started." # Green alertcolourhex="#00cd00" @@ -69,7 +66,6 @@ fn_alert_restarted() { alertaction="Restarted" alertemoji="โ†บ" alertsound="1" - alerturl="not enabled" alertmessage="${selfname} has restarted." # Green alertcolourhex="#00cd00" @@ -82,7 +78,6 @@ fn_alert_monitor_session() { alertaction="Restarted" alertemoji="๐Ÿšจ" alertsound="2" - alerturl="not enabled" alertmessage="${selfname} is not running. Game server has been restarted." # Red alertcolourhex="#cd0000" @@ -94,7 +89,6 @@ fn_alert_monitor_query() { alertaction="Restarted" alertemoji="๐Ÿšจ" alertsound="2" - alerturl="not enabled" alertmessage="Unable to query ${selfname}. Game server has been restarted." # Red alertcolourhex="#cd0000" @@ -107,7 +101,6 @@ fn_alert_update() { alertaction="Updated" alertemoji="๐ŸŽ‰" alertsound="1" - alerturl="not enabled" alertmessage="${selfname} has received a game server update: ${localbuild}." # Green alertcolourhex="#00cd00" @@ -119,7 +112,6 @@ fn_alert_check_update() { alertaction="Checked for Update" alertemoji="๐ŸŽฎ" alertsound="1" - alerturl="not enabled" alertmessage="${gamename} update available: ${remotebuildversion}" # Blue alertcolourhex="#1e90ff" @@ -131,7 +123,6 @@ fn_alert_update_linuxgsm() { alertaction="Updated" alertemoji="๐ŸŽ‰" alertsound="1" - alerturl="not enabled" alertbody="${gamename} update available" alertmessage="${selfname} has received an LinuxGSM update." # Green @@ -144,7 +135,6 @@ fn_alert_permissions() { alertaction="Checked Permissions" alertemoji="โ—" alertsound="2" - alerturl="not enabled" alertmessage="${selfname} has permissions issues." # Red alertcolourhex="#cd0000" @@ -156,7 +146,6 @@ fn_alert_config() { alertaction="Updated _default.cfg" alertemoji="๐ŸŽฎ" alertsound="1" - alerturl="not enabled" alertmessage="${selfname} has received a new _default.cfg." # Blue alertcolourhex="#1e90ff" @@ -168,7 +157,6 @@ fn_alert_wipe() { alertaction="Wiped" alertemoji="๐Ÿงน" alertsound="1" - alerturl="not enabled" alertmessage="${selfname} has been wiped." # Blue alertcolourhex="#1e90ff" @@ -181,7 +169,6 @@ fn_alert_info() { alertaction="Queried" alertemoji="๐Ÿ“„" alertsound="1" - alerturl="not enabled" alertmessage="${selfname} info." # Blue alertcolourhex="#1e90ff" @@ -211,7 +198,7 @@ elif [ "${alert}" == "wipe" ]; then fn_alert_wipe fi -alerttitle="LinuxGSM Alert - ${alertaction} - ${servername}" +alerttitle="${alertemoji} ${alertaction} - ${servername} ${alertemoji}" # Generate alert log. fn_alert_log diff --git a/lgsm/modules/alert_discord.sh b/lgsm/modules/alert_discord.sh index 5eccc06c9c..b2141348d4 100644 --- a/lgsm/modules/alert_discord.sh +++ b/lgsm/modules/alert_discord.sh @@ -20,7 +20,7 @@ jsoninfo=$( "url": "", "icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg" }, - "title": "${alertemoji} ${alertaction} - ${servername} ${alertemoji}", + "title": "${alerttitle}", "url": "", "description": "", "color": "${alertcolourdec}", diff --git a/lgsm/modules/alert_pushbullet.sh b/lgsm/modules/alert_pushbullet.sh index 0a01453869..d6e975f586 100644 --- a/lgsm/modules/alert_pushbullet.sh +++ b/lgsm/modules/alert_pushbullet.sh @@ -12,7 +12,7 @@ jsoninfo=$( { "channel_tag": "${channeltag}", "type": "note", - "title": "${alertemoji} ${alerttitle} ${alertemoji}", + "title": "${alerttitle}", "body": "Server name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\nMore info\n${alerturl}" } EOF @@ -23,7 +23,7 @@ jsonnoinfo=$( { "channel_tag": "${channeltag}", "type": "note", - "title": "${alertemoji} ${alerttitle} ${alertemoji}", + "title": "${alerttitle}", "body": "Server name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}" } EOF