From 4ed46a27ec3871f4c564637eef209dd3bc58bcd8 Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 2 Jul 2023 19:41:20 +0200 Subject: [PATCH] Removed old commented code --- commands/check.js | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/commands/check.js b/commands/check.js index 42de261..40722ff 100644 --- a/commands/check.js +++ b/commands/check.js @@ -53,18 +53,6 @@ module.exports = { const userCheck = await fetch(mojang + ign); const uuid = userCheck.data.id; - /* try { - await fetch(slothPixel + uuid); - } catch (error) { - interaction.editReply({ - embeds: [{ - description: "That player hasn't played Hypixel before.", - color: embedColor - }] - }); - return; - } */ - const player = hypixel + "?key=" + hypixelApiKey + "&uuid=" + uuid const stats = await fetch(player); @@ -93,12 +81,6 @@ module.exports = { var rank = "[MVP++] " } - /* try { - const guildCheck = await fetch(guildAPI + uuid); - var guildName = guildCheck.data.name; - } catch (error) { - var guildName = "None"; - } */ const guild = guildAPI + "?key=" + hypixelApiKey + "&player=" + uuid const guildCheck = await fetch(guild); @@ -172,15 +154,6 @@ module.exports = { " This player meets the Duels requirements."; } - /* try { - const guildCheck = await fetch(guildAPI + uuid); - const tag_formatted = guildCheck.data.tag_formatted; - const guildTag2 = tag_formatted.replace(/&[0-9a-fk-or]/g, ""); - var guildTag = " " + guildTag2; - } catch (error) { - var guildTag = ""; - } */ - await interaction.editReply({ embeds: [{ title: rank + stats.data.player.displayname + guildTag, @@ -234,4 +207,4 @@ module.exports = { }] }); } -}; \ No newline at end of file +};