JaBa/commands/NSFW/hentai.js

106 lines
2.8 KiB
JavaScript
Raw Normal View History

const Command = require("../../base/Command.js"),
Discord = require("discord.js"),
fetch = require("node-fetch");
class Hentai extends Command {
2021-12-26 19:29:37 +05:00
constructor(client) {
super(client, {
name: "hentai",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: ["hen"],
memberPermissions: [],
2021-12-26 19:29:37 +05:00
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS", "ATTACH_FILES"],
nsfw: true,
ownerOnly: false,
cooldown: 2000
});
}
2021-12-26 19:29:37 +05:00
async run(message, args, data) {
const category = args[0];
var gif = null;
const embed = new Discord.MessageEmbed()
.setColor(data.config.embed.color)
2022-01-04 00:35:11 +05:00
.setFooter({
text: data.config.embed.footer
})
.setTimestamp()
2021-12-26 19:29:37 +05:00
switch (category) {
case "neko":
gif = await fetch("https://nekos.life/api/v2/img/nsfw_neko_gif").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "cum":
gif = await fetch("https://nekos.life/api/v2/img/cum").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "solo":
gif = await fetch("https://nekos.life/api/v2/img/solo").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "anal":
gif = await fetch("https://nekos.life/api/v2/img/anal").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "yuri":
gif = await fetch("https://nekos.life/api/v2/img/yuri").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "blowjob":
gif = await fetch("https://nekos.life/api/v2/img/bj").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "bj":
gif = await fetch("https://nekos.life/api/v2/img/bj").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "pussy":
gif = await fetch("https://nekos.life/api/v2/img/pussy").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "classic":
gif = await fetch("https://nekos.life/api/v2/img/hentai").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "futa":
gif = await fetch("https://nekos.life/api/v2/img/futanari").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "futanari":
gif = await fetch("https://nekos.life/api/v2/img/futanari").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
break;
case "help":
embed.setTitle(message.translate("nsfw/hentai:HELP_1"))
embed.setDescription(message.translate("nsfw/hentai:HELP_2"))
2021-12-26 19:29:37 +05:00
break;
default:
gif = await fetch("https://nekos.life/api/v2/img/Random_hentai_gif").then(response => response.json());
embed.setImage(gif.url)
2021-12-26 19:29:37 +05:00
embed.setDescription(message.translate("nsfw/hentai:NOCATEGORY", {
prefix: data.guild.prefix
}))
break;
};
2022-01-04 00:35:11 +05:00
message.channel.send({
embeds: [embed]
});
}
};
module.exports = Hentai;