mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user