mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-09 04:27:35 +08:00
bug
This commit is contained in:
parent
f92a0f2342
commit
839032a59f
@ -86,8 +86,7 @@ jsonnoinfo=$(
|
|||||||
"inline": true
|
"inline": true
|
||||||
},
|
},
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
fi
|
|
||||||
|
|
||||||
json+=$(
|
json+=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
@ -10,8 +10,8 @@ module_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|||||||
json=$(
|
json=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"title": "${alerttitle}",
|
"title": "${alerttitle}",
|
||||||
"message": "Server Name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\n
|
"message": "Server Name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\n
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ fi
|
|||||||
json+=$(
|
json+=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Server Time\n$(date)",
|
Server Time\n$(date)",
|
||||||
"priority": 5
|
"priority": 5
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
@ -10,9 +10,9 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|||||||
json=$(
|
json=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"value1": "${selfname}",
|
"value1": "${selfname}",
|
||||||
"value2": "${alerttitle}",
|
"value2": "${alerttitle}",
|
||||||
"value3": "Server Name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\n
|
"value3": "Server Name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\n
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|||||||
json=$(
|
json=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"channel_tag": "${channeltag}",
|
"channel_tag": "${channeltag}",
|
||||||
"type": "note",
|
"type": "note",
|
||||||
"title": "${alerttitle}",
|
"title": "${alerttitle}",
|
||||||
"body": "Server Name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\n
|
"body": "Server Name\n${servername}\n\nInformation\n${alertmessage}\n\nGame\n${gamename}\n\nServer IP\n${alertip}:${port}\n\nHostname\n${HOSTNAME}\n\n
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -67,11 +67,11 @@ EOF
|
|||||||
if [ -n "${querytype}" ]; then
|
if [ -n "${querytype}" ]; then
|
||||||
json+=$(
|
json+=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"short": false,
|
"short": false,
|
||||||
"title": "Is my Game Server Online?",
|
"title": "Is my Game Server Online?",
|
||||||
"value": "<https://ismygameserver.online/${querytype}/${alertip}:${queryport}|Check here>"
|
"value": "<https://ismygameserver.online/${querytype}/${alertip}:${queryport}|Check here>"
|
||||||
},
|
},
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
@ -79,11 +79,11 @@ fi
|
|||||||
if [ -n "${alerturl}" ]; then
|
if [ -n "${alerturl}" ]; then
|
||||||
json+=$(
|
json+=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"short": false,
|
"short": false,
|
||||||
"title": "More info",
|
"title": "More info",
|
||||||
"value": "${alerturl}"
|
"value": "${alerturl}"
|
||||||
},
|
},
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
@ -90,13 +90,13 @@ EOF
|
|||||||
if [ -n "${querytype}" ]; then
|
if [ -n "${querytype}" ]; then
|
||||||
json+=$(
|
json+=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"type": "section",
|
"type": "section",
|
||||||
"text": {
|
"text": {
|
||||||
"type": "mrkdwn",
|
"type": "mrkdwn",
|
||||||
"text": "*Is my Game Server Online?*\n<https://ismygameserver.online/${querytype}/${alertip}:${queryport}|Check here>"
|
"text": "*Is my Game Server Online?*\n<https://ismygameserver.online/${querytype}/${alertip}:${queryport}|Check here>"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
@ -104,13 +104,13 @@ fi
|
|||||||
if [ -n "${alerturl}" ]; then
|
if [ -n "${alerturl}" ]; then
|
||||||
json+=$(
|
json+=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"type": "section",
|
"type": "section",
|
||||||
"text": {
|
"text": {
|
||||||
"type": "mrkdwn",
|
"type": "mrkdwn",
|
||||||
"text": "*More info*\n<${alerturl}|${alerturl}>"
|
"text": "*More info*\n<${alerturl}|${alerturl}>"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
@ -10,11 +10,11 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|||||||
json=$(
|
json=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"chat_id": "${telegramchatid}",
|
"chat_id": "${telegramchatid}",
|
||||||
"message_thread_id": "${telegramthreadid}",
|
"message_thread_id": "${telegramthreadid}",
|
||||||
"parse_mode": "HTML",
|
"parse_mode": "HTML",
|
||||||
"disable_notification": "${telegramdisablenotification}",
|
"disable_notification": "${telegramdisablenotification}",
|
||||||
"text": "<b>${alerttitle}</b>\n\n<b>Server name</b>\n${servername}\n\n<b>Information</b>\n${alertmessage}\n\n<b>Game</b>\n${gamename}\n\n<b>Server IP</b>\n${alertip}:${port}\n\n<b>Hostname</b>\n${HOSTNAME}\n\n
|
"text": "<b>${alerttitle}</b>\n\n<b>Server name</b>\n${servername}\n\n<b>Information</b>\n${alertmessage}\n\n<b>Game</b>\n${gamename}\n\n<b>Server IP</b>\n${alertip}:${port}\n\n<b>Hostname</b>\n${HOSTNAME}\n\n
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ fi
|
|||||||
json+=$(
|
json+=$(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
<b>Server Time</b>\n$(date)",
|
<b>Server Time</b>\n$(date)",
|
||||||
"disable_web_page_preview": "yes"
|
"disable_web_page_preview": "yes"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user