From 490ef77fef9c92156f34f602b9ea884445f328a4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 15 Mar 2021 17:20:44 -0400 Subject: [PATCH] Fix --- commands/analyze/ocr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/analyze/ocr.js b/commands/analyze/ocr.js index 2f8ee7ec..3b872ade 100644 --- a/commands/analyze/ocr.js +++ b/commands/analyze/ocr.js @@ -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);