Fursona Command

This commit is contained in:
Dragon Fire
2020-06-09 13:53:33 -04:00
parent 256ec32279
commit 9a045f84d1
5 changed files with 37 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
const Command = require('../../structures/Command');
module.exports = class FursonaCommand extends Command {
constructor(client) {
super(client, {
name: 'fursona',
aliases: ['this-fursona-does-not-exist'],
group: 'random-img',
memberName: 'fursona',
description: 'Responds with a randomly generated fursona.',
clientPermissions: ['ATTACH_FILES'],
credit: [
{
name: 'This Fursona Does Not Exist',
url: 'https://thisfursonadoesnotexist.com/',
reason: 'API'
}
]
});
}
run(msg) {
const num = Math.floor(Math.random() * 100000);
return msg.say(`AI-Generated Fursona #${num}`, {
files: [`https://thisfursonadoesnotexist.com/v2/jpgs/seed${num.toString().padStart(5, '0')}.jpg`]
});
}
};
+1 -1
View File
@@ -22,6 +22,6 @@ module.exports = class PersonCommand extends Command {
async run(msg) {
const { body } = await request.get('https://thispersondoesnotexist.com/image');
return msg.say({ files: [{ attachment: body, name: 'this-person-does-not-exist.jpg' }] });
return msg.say('AI-Generated Person', { files: [{ attachment: body, name: 'this-person-does-not-exist.jpg' }] });
}
};
+3 -1
View File
@@ -21,6 +21,8 @@ module.exports = class WaifuCommand extends Command {
run(msg) {
const num = Math.floor(Math.random() * 100000);
return msg.say({ files: [`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`] });
return msg.say(`AI-Generated Waifu #${num}`, {
files: [`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`]
});
}
};