This commit is contained in:
Dragon Fire
2024-03-30 17:40:17 -04:00
parent b8e580f114
commit e7e19b3d66
+1
View File
@@ -65,6 +65,7 @@ module.exports = class XiaoCommand extends Command {
numres: 16
})
.attach('file', await readFile(path.join(__dirname, '..', '..', 'assets', 'images', 'xiao', img)));
console.log(body.header.message);
if (!body.results || !body.results.length) return null;
const result = body.results[0];
if (Number.parseFloat(result.header.similarity) < 90) return null;