misc.mcserver: add tcpshield footer cause why not
This commit is contained in:
parent
e5f4df6333
commit
adf80c3f1a
1 changed files with 8 additions and 1 deletions
|
@ -242,7 +242,11 @@ mcserver.callback = async function (msg, line) {
|
||||||
await msg.removeReaction("\uD83C\uDFD3");
|
await msg.removeReaction("\uD83C\uDFD3");
|
||||||
return `Failed to query:\n\`\`\`\n${data.error.message}\n\`\`\``;
|
return `Failed to query:\n\`\`\`\n${data.error.message}\n\`\`\``;
|
||||||
} else {
|
} else {
|
||||||
if (data.version.name == "TCPShield.com") data = await queryServerNoIdent(ip, port);
|
let tcpshield = false;
|
||||||
|
if (data.version.name == "TCPShield.com") {
|
||||||
|
data = await queryServerNoIdent(ip, port);
|
||||||
|
tcpshield = true;
|
||||||
|
}
|
||||||
|
|
||||||
await msg.removeReaction("\uD83C\uDFD3");
|
await msg.removeReaction("\uD83C\uDFD3");
|
||||||
|
|
||||||
|
@ -284,6 +288,9 @@ mcserver.callback = async function (msg, line) {
|
||||||
thumbnail: image && {
|
thumbnail: image && {
|
||||||
url: "attachment://icon.png",
|
url: "attachment://icon.png",
|
||||||
},
|
},
|
||||||
|
footer: {
|
||||||
|
text: tcpshield && "Server uses TCPShield",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
file: image && {
|
file: image && {
|
||||||
file: image,
|
file: image,
|
||||||
|
|
Loading…
Reference in a new issue