mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Handle image being in the about section
This commit is contained in:
@@ -69,7 +69,7 @@ module.exports = class KnowYourMemeCommand extends Command {
|
|||||||
const children = $('.bodycopy').first().children();
|
const children = $('.bodycopy').first().children();
|
||||||
for (let i = 0; i < children.length; i++) {
|
for (let i = 0; i < children.length; i++) {
|
||||||
const child = children.eq(i);
|
const child = children.eq(i);
|
||||||
if (child.text() === 'About') return children.eq(i + 1).text();
|
if (child.text() === 'About') return children.eq(i + 1).text() || children.eq(i + 2).text();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "92.2.1",
|
"version": "92.2.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user