mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-30 00:54:57 +05:00
35 lines
905 B
JavaScript
35 lines
905 B
JavaScript
|
const Command = require("../../base/Command.js"),
|
||
|
Discord = require("discord.js");
|
||
|
|
||
|
class Fml extends Command {
|
||
|
constructor(client) {
|
||
|
super(client, {
|
||
|
name: "fml",
|
||
|
dirname: __dirname,
|
||
|
enabled: true,
|
||
|
guildOnly: false,
|
||
|
aliases: [],
|
||
|
memberPermissions: [],
|
||
|
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS"],
|
||
|
nsfw: false,
|
||
|
ownerOnly: false,
|
||
|
cooldown: 2000
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async run(message, args, data) {
|
||
|
if (!this.client.config.apiKeys.blagueXYZ) return message.error("misc:COMMAND_DISABLED");
|
||
|
|
||
|
// const fml = await this.client.joker.randomVDM(null, data.guild.language.substr(0, 2));
|
||
|
const fml = await this.client.joker.randomVDM(null, "en");
|
||
|
|
||
|
const embed = new Discord.MessageEmbed()
|
||
|
.setDescription(fml.content)
|
||
|
.setFooter(message.translate("fun/fml:FOOTER"))
|
||
|
.setColor(this.client.config.embed.color);
|
||
|
|
||
|
message.channel.send(embed);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = Fml;
|