JaBa/commands/NSFW/hentai.js

106 lines
2.8 KiB
JavaScript
Raw Normal View History

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