From 7eab749bc4747c960fbad4452376cdace3b4bdee Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 23 Oct 2021 13:51:51 +0100 Subject: [PATCH] changes to alerts --- lgsm/functions/alert.sh | 8 ++++++-- lgsm/functions/alert_discord.sh | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/alert.sh b/lgsm/functions/alert.sh index fcc8cfe43..225d32f75 100644 --- a/lgsm/functions/alert.sh +++ b/lgsm/functions/alert.sh @@ -78,6 +78,7 @@ fn_alert_restart(){ fn_alert_restart_query(){ fn_script_log_info "Sending alert: Restarted: ${selfname}" + alerttype="short" alerttitle="Alert - ${selfname} - Restarted" alertemoji="🚨" alertsound="2" @@ -90,9 +91,10 @@ fn_alert_restart_query(){ fn_alert_update(){ fn_script_log_info "Sending alert: Game server updated: ${selfname}" alerttitle="Alert - ${selfname} - Game server updated" + alerttype="short" alertemoji="🎉" alertsound="1" - alerttriggermessage="${selfname} has received a game server update." + alerttriggermessage="${selfname} has received a game server update: ${localbuild}." # Green alertcolourhex="#00cd00" alertcolourdec="52480" @@ -101,9 +103,10 @@ fn_alert_update(){ fn_alert_check_update(){ fn_script_log_info "Sending alert: Game server update available" alerttitle="Alert - ${selfname} - Game server Update available" + alerttype="short" alertemoji="💿" alertsound="1" - alerttriggermessage="Game server update available for ${selfname}." + alerttriggermessage="Game server update available for ${selfname}: ${remotebuild}." # Blue alertcolourhex="#1e90ff" alertcolourdec="2003199" @@ -112,6 +115,7 @@ fn_alert_check_update(){ fn_alert_update_linuxgsm(){ fn_script_log_info "Sending alert: LinuxGSM updated: ${selfname}" alerttitle="Alert - ${selfname} - LinuxGSM updated" + alerttype="short" alertemoji="🎉" alertsound="1" alerttriggermessage="${selfname} has received a LinuxGSM update." diff --git a/lgsm/functions/alert_discord.sh b/lgsm/functions/alert_discord.sh index 4d4f05e23..c431bc008 100755 --- a/lgsm/functions/alert_discord.sh +++ b/lgsm/functions/alert_discord.sh @@ -15,13 +15,13 @@ jsonshort=$(cat <