Browse Source
refactor: remove date from alert messages
The commit refactors the code in `alert_discord.sh` and `alert_slack.sh` to remove the date from the alert messages sent by LinuxGSM. This change simplifies the message content while still indicating that it was sent by LinuxGSM and includes the version number.
pull/4345/head
Daniel Gibbs
2 years ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
2 changed files with
6 additions and
6 deletions
lgsm/modules/alert_discord.sh
lgsm/modules/alert_slack.sh
@ -65,7 +65,7 @@ jsoninfo=$(
] ,
"footer" : {
"icon_url" : " https://raw.githubusercontent.com/ ${ githubuser } / ${ githubrepo } / ${ githubbranch } /lgsm/data/alert_discord_logo.jpg " ,
"text" : " Sent by LinuxGSM ${ version } - $( date) "
"text" : " Sent by LinuxGSM ${ version } "
}
}
]
@ -126,7 +126,7 @@ jsonnoinfo=$(
] ,
"footer" : {
"icon_url" : " https://raw.githubusercontent.com/ ${ githubuser } / ${ githubrepo } / ${ githubbranch } /lgsm/data/alert_discord_logo.jpg " ,
"text" : " Sent by LinuxGSM ${ version } - $( date) "
"text" : " Sent by LinuxGSM ${ version } "
}
}
]
@ -17,7 +17,7 @@ jsonnoinfo=$(
{
"type" : "header" ,
"text" : {
"type" : "plain_text " ,
"type" : "mrkdwn " ,
"text" : " ${ alerttitle } " ,
"emoji" : true
}
@ -75,7 +75,7 @@ jsonnoinfo=$(
} ,
{
"type" : "plain_text" ,
"text" : " Sent by LinuxGSM ${ version } - $( date) " ,
"text" : " Sent by LinuxGSM ${ version } " ,
"emoji" : true
}
]
@ -97,7 +97,7 @@ jsoninfo=$(
{
"type" : "header" ,
"text" : {
"type" : "plain_text " ,
"type" : "mrkdwn " ,
"text" : " ${ alerttitle } " ,
"emoji" : true
}
@ -162,7 +162,7 @@ jsoninfo=$(
} ,
{
"type" : "plain_text" ,
"text" : " Sent by LinuxGSM ${ version } - $( date) " ,
"text" : " Sent by LinuxGSM ${ version } " ,
"emoji" : true
}
]