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!`);