From a33dbf1b35db6fd42a43d698d8a6c0aaaaf54837 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 10 Nov 2017 14:15:37 +0000 Subject: [PATCH] canvas succ --- commands/avatar-edit/demotivational-poster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/avatar-edit/demotivational-poster.js b/commands/avatar-edit/demotivational-poster.js index 92fb92de..7fdf63fa 100644 --- a/commands/avatar-edit/demotivational-poster.js +++ b/commands/avatar-edit/demotivational-poster.js @@ -57,10 +57,10 @@ module.exports = class DemotivationalPosterCommand extends Command { ctx.textAlign = 'center'; ctx.font = '60px Noto'; ctx.fillStyle = 'aquamarine'; - ctx.fillText(title, 375, 508); + ctx.fillText(title, 375, 503); ctx.font = '27px Noto'; ctx.fillStyle = 'white'; - ctx.fillText(text, 375, 580); + ctx.fillText(text, 375, 575); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'demotivational-poster.png' }] }); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);