From 52b88970fd56311ef5144ab272640dadea9deb80 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 8 Apr 2022 18:41:40 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B5=20=D0=BD=D1=83=D0=B6=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/minecraft.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/commands/General/minecraft.js b/commands/General/minecraft.js index dbf01267..1ab097d4 100644 --- a/commands/General/minecraft.js +++ b/commands/General/minecraft.js @@ -1,6 +1,5 @@ const Command = require("../../base/Command"), Discord = require("discord.js"), - fetch = require("node-fetch"), gamedig = require("gamedig"); class Minecraft extends Command { @@ -61,10 +60,7 @@ class Minecraft extends Command { if (!json) return m.error("general/minecraft:FAILED", null, { edit: true }); - const imgRes = await fetch(`https://www.minecraftskinstealer.com/achievement/a.php?i=2&h=Success&t=${ip}`); - const imgAttachment = new Discord.MessageAttachment(await imgRes.buffer(), "success.png"); - - const mcEmbed = new Discord.MessageEmbed() + const embed = new Discord.MessageEmbed() .setAuthor({ name: message.translate("general/minecraft:FIELD_NAME", { ip: json.name @@ -87,8 +83,7 @@ class Minecraft extends Command { m.edit({ content: null, - embeds: [mcEmbed], - files: [imgAttachment] + embeds: [embed] }); } }