mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fursona Command
This commit is contained in:
@@ -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/)
|
||||
|
||||
@@ -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`]
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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' }] });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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`]
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.10.0",
|
||||
"version": "116.11.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user