From f338d2112a1b064358e413c9323426cf6cf70ec3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 21 Mar 2024 20:05:17 -0400 Subject: [PATCH] for real for real --- commands/edit-image/sketch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-image/sketch.js b/commands/edit-image/sketch.js index fa3c0d63..935acf67 100644 --- a/commands/edit-image/sketch.js +++ b/commands/edit-image/sketch.js @@ -38,14 +38,14 @@ module.exports = class SketchCommand extends Command { async run(msg, { image }) { try { const { body } = await request.get(image); - await reactIfAble(msg, this.client.user, LOADING_EMOJI_ID, '💬'); + await reactIfAble(msg, msg.author, LOADING_EMOJI_ID, '💬'); const magik = gm(body); magik.colorspace('gray'); magik.out('-sketch'); magik.out('0x20+120'); magik.setFormat('png'); const attachment = await magikToBuffer(magik); - reactIfAble(res, res.author, SUCCESS_EMOJI_ID, '✅'); + reactIfAble(msg, msg.author, SUCCESS_EMOJI_ID, '✅'); if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.'); return msg.say({ files: [{ attachment, name: 'sketch.png' }] }); } catch (err) {