mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Test
This commit is contained in:
@@ -65,6 +65,7 @@ module.exports = class XiaoCommand extends Command {
|
|||||||
numres: 16
|
numres: 16
|
||||||
})
|
})
|
||||||
.attach('file', await readFile(path.join(__dirname, '..', '..', 'assets', 'images', 'xiao', img)));
|
.attach('file', await readFile(path.join(__dirname, '..', '..', 'assets', 'images', 'xiao', img)));
|
||||||
|
console.log(body.header.message);
|
||||||
if (!body.results || !body.results.length) return null;
|
if (!body.results || !body.results.length) return null;
|
||||||
const result = body.results[0];
|
const result = body.results[0];
|
||||||
if (Number.parseFloat(result.header.similarity) < 90) return null;
|
if (Number.parseFloat(result.header.similarity) < 90) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user