mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Картинка не нужна
This commit is contained in:
parent
37cbf6419a
commit
52b88970fd
1 changed files with 2 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
||||||
const Command = require("../../base/Command"),
|
const Command = require("../../base/Command"),
|
||||||
Discord = require("discord.js"),
|
Discord = require("discord.js"),
|
||||||
fetch = require("node-fetch"),
|
|
||||||
gamedig = require("gamedig");
|
gamedig = require("gamedig");
|
||||||
|
|
||||||
class Minecraft extends Command {
|
class Minecraft extends Command {
|
||||||
|
@ -61,10 +60,7 @@ class Minecraft extends Command {
|
||||||
|
|
||||||
if (!json) return m.error("general/minecraft:FAILED", null, { edit: true });
|
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 embed = new Discord.MessageEmbed()
|
||||||
const imgAttachment = new Discord.MessageAttachment(await imgRes.buffer(), "success.png");
|
|
||||||
|
|
||||||
const mcEmbed = new Discord.MessageEmbed()
|
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
name: message.translate("general/minecraft:FIELD_NAME", {
|
name: message.translate("general/minecraft:FIELD_NAME", {
|
||||||
ip: json.name
|
ip: json.name
|
||||||
|
@ -87,8 +83,7 @@ class Minecraft extends Command {
|
||||||
|
|
||||||
m.edit({
|
m.edit({
|
||||||
content: null,
|
content: null,
|
||||||
embeds: [mcEmbed],
|
embeds: [embed]
|
||||||
files: [imgAttachment]
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue