bump neko ❤️

This commit is contained in:
Neko-Life 2021-08-25 15:38:17 +07:00
parent 1900f8f2d4
commit 390b0ed7b7
9 changed files with 18 additions and 18 deletions

View file

@ -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);
}
};

View file

@ -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);
}
};

View file

@ -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);
}
};

View file

@ -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);
}
};

View file

@ -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);
}
};

View file

@ -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();

View file

@ -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);
}
};

View file

@ -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);
}
};

View file

@ -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);
}
};