From 36d4cd7f8905ab2735de7c7246003ce87d7a9ca5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 14 Jun 2020 23:55:15 -0400 Subject: [PATCH] Fix --- commands/edit-image/yu-gi-oh-token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/yu-gi-oh-token.js b/commands/edit-image/yu-gi-oh-token.js index aea71eff..6bfbb971 100644 --- a/commands/edit-image/yu-gi-oh-token.js +++ b/commands/edit-image/yu-gi-oh-token.js @@ -44,9 +44,9 @@ module.exports = class YuGiOhTokenCommand extends Command { const ctx = canvas.getContext('2d'); ctx.fillStyle = 'white'; ctx.fillRect(0, 0, base.width, base.height); - ctx.drawImage(base, 0, 0); const height = 294 / data.width; ctx.drawImage(data, 45, 102, 294, data.height * height); + ctx.drawImage(base, 0, 0); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'yu-gi-oh-token.png' }] }); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);