Files
xiao/commands/random-img/ai-art.js
T
Dragon Fire b6bf7c82ef Fix AI Art
2020-08-24 22:57:14 -04:00

28 lines
828 B
JavaScript

const Command = require('../../structures/Command');
const request = require('node-superfetch');
module.exports = class AiArtworkCommand extends Command {
constructor(client) {
super(client, {
name: 'ai-artwork',
aliases: ['this-artwork-does-not-exist', 'art', 'artwork', 'ai-art', 'this-art-does-not-exist'],
group: 'random-img',
memberName: 'ai-artwork',
description: 'Responds with randomly generated artwork.',
clientPermissions: ['ATTACH_FILES'],
credit: [
{
name: 'This Artwork Does Not Exist',
url: 'https://thisartworkdoesnotexist.com/',
reason: 'API'
}
]
});
}
async run(msg) {
const { body } = await request.get('https://thisartworkdoesnotexist.com/');
return msg.say('AI-Generated Artwork', { files: [{ attachment: body, name: 'ai-artwork.jpg' }] });
}
};