This commit is contained in:
lilyissillyyy
2025-09-18 15:40:17 -04:00
parent e25dca08d6
commit a4a3a8a80d
+1 -2
View File
@@ -111,11 +111,10 @@ module.exports = class UndertaleCommand extends Command {
ctx.font = this.client.fonts.get(font).toCanvasString(32);
ctx.fillStyle = 'white';
ctx.textBaseline = 'top';
if (character === 'temmie') quote = this.client.registry.commands.get('temmie').temmize(quote);
const text = wrapText(ctx, quote, 385);
const lines = text.length > 3 ? 3 : text.length;
for (let i = 0; i < lines; i++) {
ctx.fillText(text[i], 174, 27 + (27 * i) + (27 * i) + (space * i));
ctx.fillText(text[i], 174, 30 + (30 * i) + (23 * i) + (space * i));
}
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: `undertale-${character}.png` }] });
}