I hate canvaS

This commit is contained in:
Daniel Odendahl Jr
2017-11-10 14:12:37 +00:00
parent ebb424de81
commit 4dd82128d0
@@ -57,10 +57,10 @@ module.exports = class DemotivationalPosterCommand extends Command {
ctx.textAlign = 'center';
ctx.font = '60px Noto';
ctx.fillStyle = 'aquamarine';
ctx.fillText(title, 375, 468);
ctx.fillText(title, 375, 478);
ctx.font = '27px Noto';
ctx.fillStyle = 'white';
ctx.fillText(text, 375, 540);
ctx.fillText(text, 375, 550);
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!`);