mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
29 lines
763 B
JavaScript
29 lines
763 B
JavaScript
const Command = require('../../structures/Command');
|
|
|
|
module.exports = class AiFursonaCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'ai-fursona',
|
|
aliases: ['this-fursona-does-not-exist', 'fursona'],
|
|
group: 'random-img',
|
|
memberName: 'ai-fursona',
|
|
description: 'Responds with a randomly generated fursona.',
|
|
clientPermissions: ['ATTACH_FILES'],
|
|
credit: [
|
|
{
|
|
name: 'This Fursona Does Not Exist',
|
|
url: 'http://thisfursonadoesnotexist.com/',
|
|
reason: 'API'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const num = Math.floor(Math.random() * 100000);
|
|
return msg.say(`AI-Generated Fursona #${num}`, {
|
|
files: [`http://thisfursonadoesnotexist.com/v2/jpgs/seed${num.toString().padStart(5, '0')}.jpg`]
|
|
});
|
|
}
|
|
};
|