Removed old commented code
This commit is contained in:
@@ -53,18 +53,6 @@ module.exports = {
|
|||||||
const userCheck = await fetch(mojang + ign);
|
const userCheck = await fetch(mojang + ign);
|
||||||
const uuid = userCheck.data.id;
|
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 player = hypixel + "?key=" + hypixelApiKey + "&uuid=" + uuid
|
||||||
const stats = await fetch(player);
|
const stats = await fetch(player);
|
||||||
|
|
||||||
@@ -93,12 +81,6 @@ module.exports = {
|
|||||||
var rank = "[MVP++] "
|
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 guild = guildAPI + "?key=" + hypixelApiKey + "&player=" + uuid
|
||||||
const guildCheck = await fetch(guild);
|
const guildCheck = await fetch(guild);
|
||||||
@@ -172,15 +154,6 @@ module.exports = {
|
|||||||
"<a:check_a:1087808632172847134> This player meets the Duels requirements.";
|
"<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({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: rank + stats.data.player.displayname + guildTag,
|
title: rank + stats.data.player.displayname + guildTag,
|
||||||
|
|||||||
Reference in New Issue
Block a user