From 525990bfb3c78ddc0443ca89fd4163ca1e4aa36d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 22 May 2020 09:42:50 -0400 Subject: [PATCH] Fix alert color and position --- commands/edit-meme/alert.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-meme/alert.js b/commands/edit-meme/alert.js index 50b000c4..53795b0a 100644 --- a/commands/edit-meme/alert.js +++ b/commands/edit-meme/alert.js @@ -54,11 +54,11 @@ module.exports = class AlertCommand extends Command { const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0); ctx.font = '28px SF Pro'; - ctx.fillStyle = 'black'; + ctx.fillStyle = '#1f1f1f'; ctx.textBaseline = 'top'; let text = await wrapText(ctx, message, 540); text = text.length > 3 ? `${text.slice(0, 3).join('\n')}...` : text.join('\n'); - ctx.fillText(text, 47, 186); + ctx.fillText(text, 48, 178); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'alert.png' }] }); } };