From 19eb8179485bb9d4607bc1d803532f2003cad883 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 30 Mar 2024 18:39:34 -0400 Subject: [PATCH] Fix --- commands/random-img/xiao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-img/xiao.js b/commands/random-img/xiao.js index 80c9df15..72736feb 100644 --- a/commands/random-img/xiao.js +++ b/commands/random-img/xiao.js @@ -50,7 +50,7 @@ module.exports = class XiaoCommand extends Command { else result = `Art by ${site}`; try { const data = await this.sauceNao(img); - if (data && data.similarity > 90) { + if (data && data[0].similarity > 90) { result = `Art by [${data.authorName}](${data.authorUrl}) | Source: <${data.url}>`; } } catch {