This commit is contained in:
Dragon Fire
2024-03-30 18:39:34 -04:00
parent b4fd0fee17
commit 19eb817948
+1 -1
View File
@@ -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 {