mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -88,12 +88,12 @@ module.exports = class UndertaleCommand extends Command {
|
||||
case 'papyrus': font = 'UndertalePapyrus'; break;
|
||||
default: font = 'DeterminationMono'; break;
|
||||
}
|
||||
ctx.font = `20px ${font}`;
|
||||
ctx.font = `31px ${font}`;
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.textBaseline = 'top';
|
||||
let text = await wrapText(ctx, quote, 385);
|
||||
text = text.length > 3 ? `${text.slice(0, 3).join('\n')}...` : text.join('\n');
|
||||
ctx.fillText(text, 176, 28);
|
||||
ctx.fillText(text, 175, 20);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: `undertale-${character}.png` }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user