mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Fix
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = class LisaPresentationCommand extends Command {
|
|||||||
}
|
}
|
||||||
const lines = await wrapText(ctx, text, 330);
|
const lines = await wrapText(ctx, text, 330);
|
||||||
for (let i = 0; i < lines.length; i++) {
|
for (let i = 0; i < lines.length; i++) {
|
||||||
const textHeight = 95 + (i * 24) + (i * 10);
|
const textHeight = 95 + (i * fontSize) + (i * 10);
|
||||||
ctx.fillText(lines[i], base.width / 2, textHeight);
|
ctx.fillText(lines[i], base.width / 2, textHeight);
|
||||||
}
|
}
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'lisa-presentation.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'lisa-presentation.png' }] });
|
||||||
|
|||||||
Reference in New Issue
Block a user