mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 01:53:51 +02:00
Fix
This commit is contained in:
@@ -49,7 +49,8 @@ module.exports = class LisaPresentationCommand extends Command {
|
|||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.textAlign = 'top';
|
ctx.textAlign = 'top';
|
||||||
ctx.font = '19px Akbar';
|
ctx.font = '19px Akbar';
|
||||||
ctx.fillText(shortenText(ctx, `${text}\n`.repeat(12).trim(), 500), 30, 27);
|
ctx.fillStyle = 'white';
|
||||||
|
ctx.fillText(shortenText(ctx, `${text.toUpperCase()}\n`.repeat(12).trim(), 500), 35, 27);
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'bart-chalkboard.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'bart-chalkboard.png' }] });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user