ai-food isn't really ai

This commit is contained in:
Dragon Fire
2020-07-02 21:43:45 -04:00
parent 3e67422a3d
commit 4000145fc1
3 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -344,7 +344,6 @@ Total: 523
* **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.
@@ -357,6 +356,7 @@ Total: 523
* **dog:** Responds with a random dog image.
* **duck:** Responds with a random duck image.
* **fidget:** Responds with a random image of Fidget.
* **food:** Responds with a randomly generated food.
* **fox:** Responds with a random fox image.
* **hentai:** Responds with a random hentai image. (NSFW)
* **interesting:** Responds with a random interesting image.
@@ -1578,7 +1578,7 @@ here.
- [This Person Does Not Exist](https://thispersondoesnotexist.com/)
* ai-person (API)
- [This Snack Does Not Exist](https://thissnackdoesnotexist.com/)
* ai-food (API)
* food (API)
- [This Vessel Does Not Exist](https://thisvesseldoesnotexist.com/#/)
* ai-vase (API)
- [This Waifu Does Not Exist](https://www.thiswaifudoesnotexist.net/)
@@ -2,13 +2,13 @@ const Command = require('../../structures/Command');
const request = require('node-superfetch');
const cheerio = require('cheerio');
module.exports = class AiFoodCommand extends Command {
module.exports = class FoodCommand extends Command {
constructor(client) {
super(client, {
name: 'ai-food',
aliases: ['this-food-does-not-exist', 'this-snack-does-not-exist', 'ai-snack', 'food', 'snack'],
name: 'food',
aliases: ['this-food-does-not-exist', 'this-snack-does-not-exist', 'ai-snack', 'ai-food', 'snack'],
group: 'random-img',
memberName: 'ai-food',
memberName: 'food',
description: 'Responds with a randomly generated food.',
credit: [
{
@@ -26,10 +26,7 @@ module.exports = class AiFoodCommand extends Command {
const $ = cheerio.load(text);
const img = $('div[class="Absolute-Center"]').first().attr('style').match(/background-image:url\((.+)\);/i);
const name = $('h1[class="snack-description"]').first().text();
return msg.say(
`AI-Generated Food: ${name}`,
img ? { files: [{ attachment: img[1], name: 'ai-food.jpg' }] } : {}
);
return msg.say(name, img ? { files: [{ attachment: img[1], name: 'ai-food.jpg' }] } : {});
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.5.0",
"version": "119.5.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {