mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Fix
This commit is contained in:
@@ -50,11 +50,12 @@ module.exports = class IllegalCommand extends Command {
|
|||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.rotate(7 * (Math.PI / 180));
|
ctx.rotate(7 * (Math.PI / 180));
|
||||||
ctx.font = '45px Noto';
|
ctx.font = '45px Noto';
|
||||||
|
ctx.textAlign = 'center';
|
||||||
ctx.fillText(stripIndents`
|
ctx.fillText(stripIndents`
|
||||||
${shortenText(ctx, text, 215)}
|
${shortenText(ctx, text, 215)}
|
||||||
${isOrAre} NOW
|
${isOrAre} NOW
|
||||||
ILLEGAL.
|
ILLEGAL.
|
||||||
`, 770, 300);
|
`, 750, 300);
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'illegal.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'illegal.png' }] });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user