mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Fix
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class OcrCommand extends Command {
|
|||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
timedOut = true;
|
timedOut = true;
|
||||||
await worker.terminate();
|
await worker.terminate();
|
||||||
await reactIfAble(res, res.author, FAILURE_EMOJI_ID, '❌');
|
await reactIfAble(msg, msg.author, FAILURE_EMOJI_ID, '❌');
|
||||||
await msg.reply('Scanning took longer than 30 seconds, so I\'ve given up.');
|
await msg.reply('Scanning took longer than 30 seconds, so I\'ve given up.');
|
||||||
}, 30000);
|
}, 30000);
|
||||||
const { data: { text } } = await worker.recognize(image);
|
const { data: { text } } = await worker.recognize(image);
|
||||||
|
|||||||
Reference in New Issue
Block a user