@ -13,17 +13,21 @@ jsonshortinfo=$(
"username" : "LinuxGSM" ,
"username" : "LinuxGSM" ,
"avatar_url" : " https://raw.githubusercontent.com/ ${ githubuser } / ${ githubrepo } / ${ githubbranch } /lgsm/data/alert_discord_logo.jpg " ,
"avatar_url" : " https://raw.githubusercontent.com/ ${ githubuser } / ${ githubrepo } / ${ githubbranch } /lgsm/data/alert_discord_logo.jpg " ,
"file" : "content" ,
"file" : "content" ,
"embeds" : [ {
"embeds" : [
"color" : "2067276" ,
{
"author" : {
"author" : {
"name" : " ${ alertemoji } ${ alertsubject } ${ alertemoji } " ,
"name" : " ${ alertemoji } ${ alertsubject } ${ alertemoji } " ,
"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" : " ${ servername } " ,
"title" : " ${ servername } " ,
"description" : " ${ alertbody } \n More info: ${ alerturl } " ,
"url" : "" ,
"url" : "" ,
"description" : " ${ alertbody } \n More info: ${ alerturl } " ,
"color" : " ${ alertcolourdec } " ,
"type" : "content" ,
"type" : "content" ,
"thumbnail" : { } ,
"thumbnail" : {
"url" : " ${ alerticon } "
} ,
"fields" : [
"fields" : [
{
{
"name" : "Game" ,
"name" : "Game" ,
@ -32,7 +36,7 @@ jsonshortinfo=$(
} ,
} ,
{
{
"name" : "Server IP" ,
"name" : "Server IP" ,
"value" : " [ ${ alertip } : ${ port } ](https://www.gametracker.com/server_info/ ${ alertip } : ${ port } ) " ,
"value" : " ${ alertip } : ${ port } " ,
"inline" : true
"inline" : true
} ,
} ,
{
{
@ -40,8 +44,12 @@ jsonshortinfo=$(
"value" : " ${ HOSTNAME } " ,
"value" : " ${ HOSTNAME } " ,
"inline" : true
"inline" : true
}
}
] ,
"footer" : {
"text" : " Sent by LinuxGSM ${ version } "
}
}
]
]
} ]
}
}
EOF
EOF
)
)
@ -52,18 +60,21 @@ jsonshortnoinfo=$(
"username" : "LinuxGSM" ,
"username" : "LinuxGSM" ,
"avatar_url" : " https://raw.githubusercontent.com/ ${ githubuser } / ${ githubrepo } / ${ githubbranch } /lgsm/data/alert_discord_logo.jpg " ,
"avatar_url" : " https://raw.githubusercontent.com/ ${ githubuser } / ${ githubrepo } / ${ githubbranch } /lgsm/data/alert_discord_logo.jpg " ,
"file" : "content" ,
"file" : "content" ,
"embeds" : [ {
"embeds" : [
"color" : "2067276" ,
{
"author" : {
"author" : {
"name" : " ${ alertemoji } ${ alertsubject } ${ alertemoji } " ,
"name" : " ${ alertemoji } ${ alertsubject } ${ alertemoji } " ,
"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" : " ${ servername } " ,
"title" : " ${ servername } " ,
"url" : "" ,
"description" : " ${ alertbody } " ,
"description" : " ${ alertbody } " ,
"color" : " ${ alertcolourdec } " ,
"color" : " ${ alertcolourdec } " ,
"url" : "" ,
"type" : "content" ,
"type" : "content" ,
"thumbnail" : { } ,
"thumbnail" : {
"url" : " ${ alerticon } "
} ,
"fields" : [
"fields" : [
{
{
"name" : "Game" ,
"name" : "Game" ,
@ -80,8 +91,12 @@ jsonshortnoinfo=$(
"value" : " ${ HOSTNAME } " ,
"value" : " ${ HOSTNAME } " ,
"inline" : true
"inline" : true
}
}
] ,
"footer" : {
"text" : " Sent by LinuxGSM ${ version } "
}
}
]
]
} ]
}
}
EOF
EOF
)
)