From ea6da6c49f7816ce44b78b63cf0e27e69c542e3a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 22 May 2020 18:33:23 -0400 Subject: [PATCH] Fix --- commands/edit-image/highway-sign.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/commands/edit-image/highway-sign.js b/commands/edit-image/highway-sign.js index d7616e41..28569db0 100644 --- a/commands/edit-image/highway-sign.js +++ b/commands/edit-image/highway-sign.js @@ -52,19 +52,19 @@ module.exports = class HighwaySignCommand extends Command { ctx.font = '18px Electronic Highway Sign'; const lines = await wrapText(ctx, text.toUpperCase(), 178); if (lines.length === 1) { - ctx.fillText(lines[0], 89, 109); + ctx.fillText(lines[0], 191, 109); } else if (lines.length === 2) { - ctx.fillText(lines[0], 89, 109); - ctx.fillText(lines[1], 89, 128); + ctx.fillText(lines[0], 191, 109); + ctx.fillText(lines[1], 191, 128); } else if (lines.length === 3) { - ctx.fillText(lines[0], 89, 90); - ctx.fillText(lines[1], 89, 109); - ctx.fillText(lines[2], 89, 128); + ctx.fillText(lines[0], 191, 90); + ctx.fillText(lines[1], 191, 109); + ctx.fillText(lines[2], 191, 128); } else { - ctx.fillText(lines[0], 89, 90); - ctx.fillText(lines[1], 89, 109); - ctx.fillText(lines[2], 89, 128); - ctx.fillText(lines[4], 89, 147); + ctx.fillText(lines[0], 191, 90); + ctx.fillText(lines[1], 191, 109); + ctx.fillText(lines[2], 191, 128); + ctx.fillText(lines[4], 191, 147); } return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'highway-sign.png' }] }); }