mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
AI Cat, AI Vase, AI Horse
This commit is contained in:
@@ -227,7 +227,7 @@ in the appropriate channel's topic to use it.
|
||||
|
||||
## Commands
|
||||
|
||||
Total: 491
|
||||
Total: 494
|
||||
|
||||
### Utility:
|
||||
|
||||
@@ -325,9 +325,12 @@ Total: 491
|
||||
### Random Image:
|
||||
|
||||
* **ai-artwork:** Responds with randomly generated artwork.
|
||||
* **ai-cat:** Responds with a randomly generated cat.
|
||||
* **ai-food:** Responds with a randomly generated food.
|
||||
* **ai-fursona:** Responds with a randomly generated fursona.
|
||||
* **ai-horse:** Responds with a randomly generated horse.
|
||||
* **ai-person:** Responds with a randomly generated person.
|
||||
* **ai-vase:** Responds with a randomly generated vase.
|
||||
* **ai-waifu:** Responds with a randomly generated waifu.
|
||||
* **awwnime:** Responds with cute random anime art.
|
||||
* **bird:** Responds with a random image of a bird.
|
||||
@@ -1477,12 +1480,18 @@ here.
|
||||
* the-onion ([RSS Feed](https://www.theonion.com/rss))
|
||||
- [This Artwork Does Not Exist](https://thisartworkdoesnotexist.com/)
|
||||
* ai-artwork (API)
|
||||
- [This Cat Does Not Exist](https://thiscatdoesnotexist.com/)
|
||||
* ai-cat (API)
|
||||
- [This Fursona Does Not Exist](https://thisfursonadoesnotexist.com/)
|
||||
* ai-fursona (API)
|
||||
- [This Horse Does Not Exist](https://thishorsedoesnotexist.com/)
|
||||
* ai-horse (API)
|
||||
- [This Person Does Not Exist](https://thispersondoesnotexist.com/)
|
||||
* ai-person (API)
|
||||
- [This Snack Does Not Exist](https://thissnackdoesnotexist.com/)
|
||||
* ai-food (API)
|
||||
- [This Vessel Does Not Exist](https://thisvesseldoesnotexist.com/#/)
|
||||
* ai-vase (API)
|
||||
- [This Waifu Does Not Exist](https://www.thiswaifudoesnotexist.net/)
|
||||
* ai-waifu (API)
|
||||
- [Tim's Printables](https://www.timvandevall.com/)
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class AiCatCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'ai-cat',
|
||||
aliases: ['this-cat-does-not-exist', 'ai-neko', 'ai-kitty', 'ai-meow'],
|
||||
group: 'random-img',
|
||||
memberName: 'ai-cat',
|
||||
description: 'Responds with a randomly generated cat.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'This Cat Does Not Exist',
|
||||
url: 'https://thiscatdoesnotexist.com/',
|
||||
reason: 'API'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
const { body } = await request.get('https://thiscatdoesnotexist.com/');
|
||||
return msg.say('AI-Generated Cat', { files: [{ attachment: body, name: 'ai-cat.jpg' }] });
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,27 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class AiHorseCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'ai-horse',
|
||||
aliases: ['this-horse-does-not-exist', 'horse'],
|
||||
group: 'random-img',
|
||||
memberName: 'ai-horse',
|
||||
description: 'Responds with a randomly generated horse.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'This Horse Does Not Exist',
|
||||
url: 'https://thishorsedoesnotexist.com/',
|
||||
reason: 'API'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
const { body } = await request.get('https://thishorsedoesnotexist.com/');
|
||||
return msg.say('AI-Generated Horse', { files: [{ attachment: body, name: 'ai-horse.jpg' }] });
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class AiVaseCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'ai-vase',
|
||||
aliases: ['this-vase-does-not-exist', 'vessel', 'this-vessel-does-not-exist'],
|
||||
group: 'random-img',
|
||||
memberName: 'ai-vase',
|
||||
description: 'Responds with a randomly generated vase.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'This Vessel Does Not Exist',
|
||||
url: 'https://thisvesseldoesnotexist.com/#/',
|
||||
reason: 'API'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const num = Math.floor(Math.random() * 20000) + 1;
|
||||
const padded = num.toString().padStart(7, '0');
|
||||
return msg.say(`AI-Generated Vase #${num}`, {
|
||||
files: [`http://thisvesseldoesnotexist.s3-website-us-west-2.amazonaws.com/public/v2/fakes/${padded}.jpg`]
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -5,7 +5,7 @@ module.exports = class CatCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'cat',
|
||||
aliases: ['neko', 'kitty'],
|
||||
aliases: ['neko', 'kitty', 'meow'],
|
||||
group: 'random-img',
|
||||
memberName: 'cat',
|
||||
description: 'Responds with a random cat image.',
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.31.0",
|
||||
"version": "116.32.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user