diff --git a/cmds/image/baka.js b/cmds/image/baka.js index eac9112..51ed226 100644 --- a/cmds/image/baka.js +++ b/cmds/image/baka.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class baka extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class baka extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} is getting dere-dere~`; const image = await fetchNeko("baka"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file diff --git a/cmds/image/cry.js b/cmds/image/cry.js index f7defa2..31ab761 100644 --- a/cmds/image/cry.js +++ b/cmds/image/cry.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class cry extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class cry extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} is crying`; const image = await fetchNeko("cry"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file diff --git a/cmds/image/dance.js b/cmds/image/dance.js index b59229c..0e49b10 100644 --- a/cmds/image/dance.js +++ b/cmds/image/dance.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class dance extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class dance extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} is dancin`; const image = await fetchNeko("dance"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file diff --git a/cmds/image/laugh.js b/cmds/image/laugh.js index 26f8dad..dbc1fbf 100644 --- a/cmds/image/laugh.js +++ b/cmds/image/laugh.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class laugh extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class laugh extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} is laughin`; const image = await fetchNeko("laugh"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file diff --git a/cmds/image/neko.js b/cmds/image/neko.js index d944e61..86a7241 100644 --- a/cmds/image/neko.js +++ b/cmds/image/neko.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class neko extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class neko extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} ~Nyann~`; const image = await fetchNeko("nekos"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file diff --git a/cmds/image/rsc/interactEmbed.js b/cmds/image/rsc/interactEmbed.js index 36c8849..2eeea84 100644 --- a/cmds/image/rsc/interactEmbed.js +++ b/cmds/image/rsc/interactEmbed.js @@ -1,6 +1,6 @@ 'use strict'; -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); const { parseComa, getMember, defaultImageEmbed } = require("../../../resources/functions"); module.exports = async (msg, arg, name, endsaT = "") => { @@ -99,7 +99,7 @@ module.exports = async (msg, arg, name, endsaT = "") => { ss = name.endsWith("s") ? name + "es" : name + "s"; const aT = `${shoot.displayName} ${ss} ${tN} ${tN.endsWith(" times LMFAO") ? "" : endsaT}`, count = shoot.user.DB.interactions[name] + (iC > 0 ? 1 : 0), - emb = defaultImageEmbed(msg, await fetchNeko(name)); + emb = defaultImageEmbed(msg, (await fetchNeko(name)).url); let num; if (count) { const u = count?.toString(); diff --git a/cmds/image/smile.js b/cmds/image/smile.js index 226d61c..3c552a4 100644 --- a/cmds/image/smile.js +++ b/cmds/image/smile.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class smile extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class smile extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} is smilin`; const image = await fetchNeko("smile"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file diff --git a/cmds/image/smug.js b/cmds/image/smug.js index 3dd7963..d18c629 100644 --- a/cmds/image/smug.js +++ b/cmds/image/smug.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class smug extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class smug extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} got a smug face`; const image = await fetchNeko("smug"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file diff --git a/cmds/image/wave.js b/cmds/image/wave.js index 68e38ab..2e7cbd1 100644 --- a/cmds/image/wave.js +++ b/cmds/image/wave.js @@ -2,7 +2,7 @@ const commando = require("@iceprod/discord.js-commando"); const { trySend, defaultImageEmbed } = require("../../resources/functions"); -const { default: fetchNeko } = require("nekos-best.js"); +const { fetchNeko } = require("nekos-best.js"); module.exports = class wave extends commando.Command { constructor(client) { @@ -17,7 +17,7 @@ module.exports = class wave extends commando.Command { msg.channel.startTyping(); const title = `${msg.guild ? msg.member.displayName : msg.author.username} is waving`; const image = await fetchNeko("wave"); - const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); + const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true })); return trySend(this.client, msg, emb); } }; \ No newline at end of file