mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = class EddFactsBookCommand extends Command {
|
||||
ctx.font = `${fontSize}px Noto`;
|
||||
}
|
||||
const lines = await wrapText(ctx, fact, 183);
|
||||
ctx.fillText(lines.join('\n'), 119, 326, 183);
|
||||
ctx.fillText(lines.join('\n'), 119, 316, 183);
|
||||
ctx.rotate(-15 * (Math.PI / 180));
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'edd-facts-book.png' }] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user