From 6ee2af19725350428c40f913570849f9fbe43368 Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 13 Mar 2023 11:48:24 +0100 Subject: [PATCH] Updated check command --- commands/check.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/commands/check.js b/commands/check.js index cb8e1fe..4f3e38d 100644 --- a/commands/check.js +++ b/commands/check.js @@ -1,6 +1,7 @@ const { SlashCommandBuilder, EmbedBuilder, PermissionFlagsBits } = require('discord.js'); -const { hypixelApiKey, dev } = require('../config.json'); +const { hypixelApiKey } = require('../config.json'); const { color } = require('../options.json'); +const fetch = require('axios') module.exports = { name: 'check', @@ -23,18 +24,12 @@ module.exports = { const mojang = "https://api.mojang.com/users/profiles/minecraft/" const slothPixel = "https://api.slothpixel.me/api/players/"; const minotar = "https://minotar.net/helm/"; - const fetch = require('axios'); const embedColor = Number(color.replace("#", "0x")); const userCheck = await fetch(mojang + ign); const stats = await fetch(slothPixel + ign); const head = minotar + ign; - - if (interaction.user.id !== dev) { - interaction.reply('This command is currently under development.') - return - } - + if (!ign) { interaction.reply('Please provide a player\'s IGN.') return @@ -50,9 +45,6 @@ module.exports = { return } - const level = stats.data.stats.SkyWars.level; - - await interaction.reply({ embeds: [{ title: stats.data.username,