From f2fecd9d6bddf4a68ec987e2c99d6af2f59a63d0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 22 May 2020 18:34:41 -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 28569db0..8421971e 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], 191, 109); + ctx.fillText(lines[0], 318, 109); } else if (lines.length === 2) { - ctx.fillText(lines[0], 191, 109); - ctx.fillText(lines[1], 191, 128); + ctx.fillText(lines[0], 318, 109); + ctx.fillText(lines[1], 318, 128); } else if (lines.length === 3) { - ctx.fillText(lines[0], 191, 90); - ctx.fillText(lines[1], 191, 109); - ctx.fillText(lines[2], 191, 128); + ctx.fillText(lines[0], 318, 90); + ctx.fillText(lines[1], 318, 109); + ctx.fillText(lines[2], 318, 128); } else { - ctx.fillText(lines[0], 191, 90); - ctx.fillText(lines[1], 191, 109); - ctx.fillText(lines[2], 191, 128); - ctx.fillText(lines[4], 191, 147); + ctx.fillText(lines[0], 318, 90); + ctx.fillText(lines[1], 318, 109); + ctx.fillText(lines[2], 318, 128); + ctx.fillText(lines[4], 318, 147); } return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'highway-sign.png' }] }); }