mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
28 lines
828 B
JavaScript
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' }] });
|
|
}
|
|
};
|