From 058ecc378764d305fd8affec2e11049c91b3e59a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 19 Mar 2018 22:49:19 +0000 Subject: [PATCH] Fix --- commands/image-edit/illegal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/image-edit/illegal.js b/commands/image-edit/illegal.js index cda9c051..33692b4e 100644 --- a/commands/image-edit/illegal.js +++ b/commands/image-edit/illegal.js @@ -50,11 +50,12 @@ module.exports = class IllegalCommand extends Command { ctx.drawImage(base, 0, 0); ctx.rotate(7 * (Math.PI / 180)); ctx.font = '45px Noto'; + ctx.textAlign = 'center'; ctx.fillText(stripIndents` ${shortenText(ctx, text, 215)} ${isOrAre} NOW ILLEGAL. - `, 770, 300); + `, 750, 300); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'illegal.png' }] }); } };