diff --git a/README.md b/README.md index 35200ef4..d3058497 100644 --- a/README.md +++ b/README.md @@ -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/) diff --git a/commands/random-img/ai-food.js b/commands/random-img/food.js similarity index 77% rename from commands/random-img/ai-food.js rename to commands/random-img/food.js index 18f92fd1..477e130d 100644 --- a/commands/random-img/ai-food.js +++ b/commands/random-img/food.js @@ -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!`); } diff --git a/package.json b/package.json index 5ed6c8fd..808832ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "119.5.0", + "version": "119.5.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {