diff --git a/commands/search/frinkiac.js b/commands/search/frinkiac.js index 165646d3..2c96a5f2 100644 --- a/commands/search/frinkiac.js +++ b/commands/search/frinkiac.js @@ -39,7 +39,7 @@ module.exports = class FrinkiacCommand extends Command { const wrapped = ['']; let currentLine = 0; for (const word of caption) { - if (currentLine.length + word.length < 26) { + if (wrapped[currentLine].length + word.length < 26) { wrapped[currentLine] += ` ${word}`; } else { wrapped.push(` ${word}`);