diff --git a/commands/search/know-your-meme.js b/commands/search/know-your-meme.js index 91f88a02..e27d04e7 100644 --- a/commands/search/know-your-meme.js +++ b/commands/search/know-your-meme.js @@ -67,13 +67,13 @@ module.exports = class KnowYourMemeCommand extends Command { getMemeDescription($) { const children = $('.bodycopy').first().children(); + let foundAbout = false; for (let i = 0; i < children.length; i++) { - const child = children.eq(i); - if (child.text() === 'About') { - for (let j = i + 1; j < children.length; j++) { - const text = children.eq(j).text(); - if (text) return text; - } + const text = children.eq(i).text(); + if (foundAbout) { + if (text) return text; + } else if (foundAbout) { + foundAbout = true; } } return null; diff --git a/package.json b/package.json index 879b1ff1..7f454905 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "92.2.5", + "version": "92.2.6", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {