This commit is contained in:
Dragon Fire
2020-03-28 13:32:24 -04:00
parent 435fd6fe4f
commit c11a490c54
+2 -2
View File
@@ -47,10 +47,10 @@ module.exports = class LisaPresentationCommand extends Command {
const canvas = createCanvas(base.width, base.height);
const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0);
ctx.textAlign = 'top';
ctx.textBaseline = 'top';
ctx.font = '19px Akbar';
ctx.fillStyle = 'white';
ctx.fillText(shortenText(ctx, `${text.toUpperCase()}\n`.repeat(12).trim(), 500), 30, 35);
ctx.fillText(shortenText(ctx, `${text.toUpperCase()}\n`.repeat(12).trim(), 500), 30, 27);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'bart-chalkboard.png' }] });
}
};