We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d17622 commit 7a0fc70Copy full SHA for 7a0fc70
lgsm/modules/alert_discord.sh
@@ -46,12 +46,25 @@ json=$(
46
"name": "Server Time",
47
"value": "$(date)",
48
"inline": true
49
- },
+ }
50
+EOF
51
+)
52
+
53
+if [ -n "${querytype}" ]; then
54
+ json+=$(
55
+ cat << EOF
56
+ ,
57
{
58
"name": "Is my Game Server Online?",
59
"value": "https://ismygameserver.online/${imgsoquerytype}/${alertip}:${queryport}",
60
61
}
62
63
+ )
64
+fi
65
66
+json+=$(
67
68
],
69
"footer": {
70
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg",
0 commit comments