mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
changes to alerts
This commit is contained in:
parent
a6882b9b3b
commit
7eab749bc4
@ -78,6 +78,7 @@ fn_alert_restart(){
|
|||||||
|
|
||||||
fn_alert_restart_query(){
|
fn_alert_restart_query(){
|
||||||
fn_script_log_info "Sending alert: Restarted: ${selfname}"
|
fn_script_log_info "Sending alert: Restarted: ${selfname}"
|
||||||
|
alerttype="short"
|
||||||
alerttitle="Alert - ${selfname} - Restarted"
|
alerttitle="Alert - ${selfname} - Restarted"
|
||||||
alertemoji="🚨"
|
alertemoji="🚨"
|
||||||
alertsound="2"
|
alertsound="2"
|
||||||
@ -90,9 +91,10 @@ fn_alert_restart_query(){
|
|||||||
fn_alert_update(){
|
fn_alert_update(){
|
||||||
fn_script_log_info "Sending alert: Game server updated: ${selfname}"
|
fn_script_log_info "Sending alert: Game server updated: ${selfname}"
|
||||||
alerttitle="Alert - ${selfname} - Game server updated"
|
alerttitle="Alert - ${selfname} - Game server updated"
|
||||||
|
alerttype="short"
|
||||||
alertemoji="🎉"
|
alertemoji="🎉"
|
||||||
alertsound="1"
|
alertsound="1"
|
||||||
alerttriggermessage="${selfname} has received a game server update."
|
alerttriggermessage="${selfname} has received a game server update: ${localbuild}."
|
||||||
# Green
|
# Green
|
||||||
alertcolourhex="#00cd00"
|
alertcolourhex="#00cd00"
|
||||||
alertcolourdec="52480"
|
alertcolourdec="52480"
|
||||||
@ -101,9 +103,10 @@ fn_alert_update(){
|
|||||||
fn_alert_check_update(){
|
fn_alert_check_update(){
|
||||||
fn_script_log_info "Sending alert: Game server update available"
|
fn_script_log_info "Sending alert: Game server update available"
|
||||||
alerttitle="Alert - ${selfname} - Game server Update available"
|
alerttitle="Alert - ${selfname} - Game server Update available"
|
||||||
|
alerttype="short"
|
||||||
alertemoji="💿"
|
alertemoji="💿"
|
||||||
alertsound="1"
|
alertsound="1"
|
||||||
alerttriggermessage="Game server update available for ${selfname}."
|
alerttriggermessage="Game server update available for ${selfname}: ${remotebuild}."
|
||||||
# Blue
|
# Blue
|
||||||
alertcolourhex="#1e90ff"
|
alertcolourhex="#1e90ff"
|
||||||
alertcolourdec="2003199"
|
alertcolourdec="2003199"
|
||||||
@ -112,6 +115,7 @@ fn_alert_check_update(){
|
|||||||
fn_alert_update_linuxgsm(){
|
fn_alert_update_linuxgsm(){
|
||||||
fn_script_log_info "Sending alert: LinuxGSM updated: ${selfname}"
|
fn_script_log_info "Sending alert: LinuxGSM updated: ${selfname}"
|
||||||
alerttitle="Alert - ${selfname} - LinuxGSM updated"
|
alerttitle="Alert - ${selfname} - LinuxGSM updated"
|
||||||
|
alerttype="short"
|
||||||
alertemoji="🎉"
|
alertemoji="🎉"
|
||||||
alertsound="1"
|
alertsound="1"
|
||||||
alerttriggermessage="${selfname} has received a LinuxGSM update."
|
alerttriggermessage="${selfname} has received a LinuxGSM update."
|
||||||
|
@ -15,13 +15,13 @@ jsonshort=$(cat <<EOF
|
|||||||
"embeds": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
"author": {
|
"author": {
|
||||||
"name": "LinuxGSM Alert",
|
"name": "${servername}",
|
||||||
"url": "",
|
"url": "",
|
||||||
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg"
|
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg"
|
||||||
},
|
},
|
||||||
"title": "${alertemoji} ${alerttriggermessage}",
|
"title": "${alertemoji} ${alerttriggermessage}",
|
||||||
"url": "",
|
"url": "",
|
||||||
"description": "${servername}",
|
"description": "",
|
||||||
"color": "${alertcolourdec}",
|
"color": "${alertcolourdec}",
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
"url": "${alerticon}"
|
"url": "${alerticon}"
|
||||||
|
Loading…
Reference in New Issue
Block a user