mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class OcrCommand extends Command {
|
||||
setTimeout(async () => {
|
||||
timedOut = true;
|
||||
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.');
|
||||
}, 30000);
|
||||
const { data: { text } } = await worker.recognize(image);
|
||||
|
||||
Reference in New Issue
Block a user