From 41130af6c423005287b26612f4300619882ee84a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 4 Jun 2020 09:52:21 -0400 Subject: [PATCH] Fix --- commands/edit-meme/edd-facts-book.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/edit-meme/edd-facts-book.js b/commands/edit-meme/edd-facts-book.js index 9a4ee1f7..d80f0e77 100644 --- a/commands/edit-meme/edd-facts-book.js +++ b/commands/edit-meme/edd-facts-book.js @@ -50,7 +50,7 @@ module.exports = class EddFactsBookCommand extends Command { const ctx = canvas.getContext('2d'); ctx.textBaseline = 'top'; ctx.drawImage(base, 0, 0); - ctx.rotate(-15 * (Math.PI / 180)); + ctx.rotate(15 * (Math.PI / 180)); ctx.font = '30px Noto'; let fontSize = 30; while (ctx.measureText(fact).width > 549) { @@ -58,8 +58,8 @@ module.exports = class EddFactsBookCommand extends Command { ctx.font = `${fontSize}px Noto`; } const lines = await wrapText(ctx, fact, 183); - ctx.fillText(lines.join('\n'), 119, 306, 183); - ctx.rotate(15 * (Math.PI / 180)); + ctx.fillText(lines.join('\n'), 119, 326, 183); + ctx.rotate(-15 * (Math.PI / 180)); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'edd-facts-book.png' }] }); } };