From 45342725aa3533bdf97895ee030939e9c4a82453 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 6 Mar 2020 20:24:42 -0500 Subject: [PATCH] Fix --- commands/meme-gen/worthless.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/meme-gen/worthless.js b/commands/meme-gen/worthless.js index c4c5ae76..daf9b06c 100644 --- a/commands/meme-gen/worthless.js +++ b/commands/meme-gen/worthless.js @@ -47,8 +47,10 @@ module.exports = class WorthlessCommand extends Command { ctx.rotate(6 * (Math.PI / 180)); ctx.drawImage(avatar, 496, 183, 400, 400); ctx.rotate(-6 * (Math.PI / 180)); + ctx.translate(canvas.width / 2, canvas.height / 2); ctx.rotate(160 * (Math.PI / 180)); - ctx.drawImage(avatar, 942, 1148, 75, 75); + ctx.translate(-(canvas.width / 2), -(canvas.height / 2)); + ctx.drawImage(avatar, 625, 55, 75, 75); ctx.rotate(-160 * (Math.PI / 180)); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'worthless.png' }] }); } catch (err) {