mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Fix
This commit is contained in:
@@ -114,7 +114,7 @@ module.exports = class UndertaleCommand extends Command {
|
|||||||
const text = wrapText(ctx, quote, 385);
|
const text = wrapText(ctx, quote, 385);
|
||||||
const lines = text.length > 3 ? 3 : text.length;
|
const lines = text.length > 3 ? 3 : text.length;
|
||||||
for (let i = 0; i < lines; i++) {
|
for (let i = 0; i < lines; i++) {
|
||||||
ctx.fillText(text[i], 174, 30 + (30 * i) + (23 * i) + (space * i));
|
ctx.fillText(text[i], 174, 30 + (30 * i) + (20 * i) + (space * i));
|
||||||
}
|
}
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: `undertale-${character}.png` }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: `undertale-${character}.png` }] });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user