From 1374ed3112aac34dc2be5d175ec128ddcb77d6d3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 13 Dec 2017 18:26:02 +0000 Subject: [PATCH] Fix --- commands/image-edit/ifunny.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/image-edit/ifunny.js b/commands/image-edit/ifunny.js index 2dcd111f..24931734 100644 --- a/commands/image-edit/ifunny.js +++ b/commands/image-edit/ifunny.js @@ -35,8 +35,8 @@ module.exports = class IfunnyCommand extends Command { const ctx = canvas.getContext('2d'); ctx.drawImage(data, 0, 0); ctx.fillStyle = '#181619'; - ctx.fillRect(0, canvas.height - data.height, canvas.width, data.height); - ctx.drawImage(base, canvas.width - data.width, canvas.height - data.height); + ctx.fillRect(0, canvas.height - base.height, canvas.width, base.height); + ctx.drawImage(base, canvas.width - base.width, canvas.height - base.height); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'ifunny.png' }] }); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);