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