mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-07 03:26:50 +08:00
bug
This commit is contained in:
parent
839032a59f
commit
81c00410a5
@ -29,95 +29,32 @@ json=$(
|
||||
"url": "${alerticon}"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Server Name",
|
||||
"value": "${servername}"
|
||||
},
|
||||
{
|
||||
"name": "Information",
|
||||
"value": "${alertmessage}"
|
||||
},
|
||||
{
|
||||
"name": "Game",
|
||||
"value": "${gamename}",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Server Time",
|
||||
"value": "$(date)",
|
||||
"inline": true
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg",
|
||||
"text": "Sent by LinuxGSM ${version}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
||||
jsonnoinfo=$(
|
||||
cat << EOF
|
||||
{
|
||||
"username": "LinuxGSM",
|
||||
"avatar_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg",
|
||||
"file": "content",
|
||||
"embeds": [
|
||||
{
|
||||
"author": {
|
||||
"name": "LinuxGSM Alert",
|
||||
"url": "",
|
||||
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg"
|
||||
},
|
||||
"title": "${alerttitle}",
|
||||
"url": "",
|
||||
"description": "",
|
||||
"color": "${alertcolourdec}",
|
||||
"type": "content",
|
||||
"thumbnail": {
|
||||
"url": "${alerticon}"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Is my Game Server Online?",
|
||||
"value": "https://ismygameserver.online/${querytype}/${alertip}:${queryport}",
|
||||
"inline": true
|
||||
},
|
||||
EOF
|
||||
)
|
||||
|
||||
json+=$(
|
||||
cat << EOF
|
||||
{
|
||||
"name": "More info",
|
||||
"value": "${alerturl}",
|
||||
"inline": true
|
||||
},
|
||||
"name": "Server Name",
|
||||
"value": "${servername}"
|
||||
},
|
||||
{
|
||||
"name": "Information",
|
||||
"value": "${alertmessage}"
|
||||
},
|
||||
{
|
||||
"name": "Game",
|
||||
"value": "${gamename}",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Server IP",
|
||||
"value": "\`${alertip}:${port}\`",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Hostname",
|
||||
"value": "${HOSTNAME}",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Server Time",
|
||||
"value": "$(date)",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Is my Game Server Online?",
|
||||
"value": "https://ismygameserver.online/${querytype}/${alertip}:${queryport}",
|
||||
"inline": true
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"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",
|
||||
"text": "Sent by LinuxGSM ${version}"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user