diff --git a/README.md b/README.md index 49a665ff..f6dd66e2 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ in the appropriate channel's topic to use it. ## Commands -Total: 466 +Total: 467 ### Utility: @@ -331,6 +331,7 @@ Total: 466 * **duck:** Responds with a random duck image. * **fidget:** Responds with a random image of Fidget. * **fox:** Responds with a random fox image. +* **fursona:** Responds with a randomly generated fursona. * **hentai:** Responds with a random hentai image. (NSFW) * **interesting:** Responds with a random interesting image. * **karen:** Responds with a random image of Karen. @@ -1398,6 +1399,8 @@ here. * newspaper (API) - [The Onion](https://www.theonion.com/) * the-onion ([RSS Feed](https://www.theonion.com/rss)) +- [This Fursona Does Not Exist](https://thisfursonadoesnotexist.com/) + * fursona (API) - [This Person Does Not Exist](https://thispersondoesnotexist.com/) * person (API) - [This Waifu Does Not Exist](https://www.thiswaifudoesnotexist.net/) diff --git a/commands/random-img/fursona.js b/commands/random-img/fursona.js new file mode 100644 index 00000000..008ec15b --- /dev/null +++ b/commands/random-img/fursona.js @@ -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`] + }); + } +}; diff --git a/commands/random-img/person.js b/commands/random-img/person.js index 42e7d892..17798969 100644 --- a/commands/random-img/person.js +++ b/commands/random-img/person.js @@ -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' }] }); } }; diff --git a/commands/random-img/waifu.js b/commands/random-img/waifu.js index 45b14165..fd760c2d 100644 --- a/commands/random-img/waifu.js +++ b/commands/random-img/waifu.js @@ -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`] + }); } }; diff --git a/package.json b/package.json index c5d26a36..517f1a15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.10.0", + "version": "116.11.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {