mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Fix
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = class FrinkiacCommand extends Command {
|
|||||||
const wrapped = [''];
|
const wrapped = [''];
|
||||||
let currentLine = 0;
|
let currentLine = 0;
|
||||||
for (const word of caption) {
|
for (const word of caption) {
|
||||||
if (currentLine.length + word.length < 26) {
|
if (wrapped[currentLine].length + word.length < 26) {
|
||||||
wrapped[currentLine] += ` ${word}`;
|
wrapped[currentLine] += ` ${word}`;
|
||||||
} else {
|
} else {
|
||||||
wrapped.push(` ${word}`);
|
wrapped.push(` ${word}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user