Browse Source
refactor: update alert messages in lgsm/modules/alert.sh
- Updated the alert messages for when the game server is stopped, started, restarted, and when an LinuxGSM update is received.
- Changed the wording to use "has been" instead of "has" for consistency.
- Added a mention that the server has been restarted after receiving an LinuxGSM update.
pull/4345/head
Daniel Gibbs
2 years ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
1 changed files with
4 additions and
4 deletions
lgsm/modules/alert.sh
@ -44,7 +44,7 @@ fn_alert_stopped() {
alertaction = "Stopped"
alertaction = "Stopped"
alertemoji = "❌"
alertemoji = "❌"
alertsound = "1"
alertsound = "1"
alertmessage = " ${ selfname } has stopped. "
alertmessage = " ${ selfname } has been stopped. "
# Red
# Red
alertcolourhex = "#cd0000"
alertcolourhex = "#cd0000"
alertcolourdec = "13434880"
alertcolourdec = "13434880"
@ -55,7 +55,7 @@ fn_alert_started() {
alertaction = "Started"
alertaction = "Started"
alertemoji = "✅"
alertemoji = "✅"
alertsound = "1"
alertsound = "1"
alertmessage = " ${ selfname } has started. "
alertmessage = " ${ selfname } has been started. "
# Green
# Green
alertcolourhex = "#00cd00"
alertcolourhex = "#00cd00"
alertcolourdec = "52480"
alertcolourdec = "52480"
@ -66,7 +66,7 @@ fn_alert_restarted() {
alertaction = "Restarted"
alertaction = "Restarted"
alertemoji = "↺"
alertemoji = "↺"
alertsound = "1"
alertsound = "1"
alertmessage = " ${ selfname } has restarted. "
alertmessage = " ${ selfname } has been restarted. "
# Green
# Green
alertcolourhex = "#00cd00"
alertcolourhex = "#00cd00"
alertcolourdec = "52480"
alertcolourdec = "52480"
@ -124,7 +124,7 @@ fn_alert_update_linuxgsm() {
alertemoji = "🎉"
alertemoji = "🎉"
alertsound = "1"
alertsound = "1"
alertbody = " ${ gamename } update available "
alertbody = " ${ gamename } update available "
alertmessage = " ${ selfname } has received an LinuxGSM update. "
alertmessage = " ${ selfname } has received an LinuxGSM update and been restarted . "
# Green
# Green
alertcolourhex = "#00cd00"
alertcolourhex = "#00cd00"
alertcolourdec = "52480"
alertcolourdec = "52480"