canvas succ

This commit is contained in:
Daniel Odendahl Jr
2017-11-10 14:15:37 +00:00
parent ef7c58c508
commit a33dbf1b35
@@ -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!`);