Files
xiao/commands/random-img/ai-waifu.js
T
2020-06-09 13:59:27 -04:00

29 lines
721 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class AiWaifuCommand extends Command {
constructor(client) {
super(client, {
name: 'ai-waifu',
aliases: ['this-waifu-does-not-exist', 'waifu'],
group: 'random-img',
memberName: 'ai-waifu',
description: 'Responds with a randomly generated waifu.',
clientPermissions: ['ATTACH_FILES'],
credit: [
{
name: 'This Waifu Does Not Exist',
url: 'https://www.thiswaifudoesnotexist.net/',
reason: 'API'
}
]
});
}
run(msg) {
const num = Math.floor(Math.random() * 100000);
return msg.say(`AI-Generated Waifu #${num}`, {
files: [`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`]
});
}
};