From adf80c3f1ac8608799a2d39f77b3b5f1ff327c14 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 2 Aug 2024 13:00:01 -0600 Subject: [PATCH] misc.mcserver: add tcpshield footer cause why not --- src/modules/misc/mcserver.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/misc/mcserver.js b/src/modules/misc/mcserver.js index c5987ee..fb5ad24 100644 --- a/src/modules/misc/mcserver.js +++ b/src/modules/misc/mcserver.js @@ -242,7 +242,11 @@ mcserver.callback = async function (msg, line) { await msg.removeReaction("\uD83C\uDFD3"); return `Failed to query:\n\`\`\`\n${data.error.message}\n\`\`\``; } 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"); @@ -284,6 +288,9 @@ mcserver.callback = async function (msg, line) { thumbnail: image && { url: "attachment://icon.png", }, + footer: { + text: tcpshield && "Server uses TCPShield", + }, }, file: image && { file: image,