Removed old commented code

This commit is contained in:
2023-07-02 19:41:20 +02:00
parent 3c6aaa95f9
commit 4ed46a27ec

View File

@@ -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 = {
"<a:check_a:1087808632172847134> 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 = {
}]
});
}
};
};