This commit is contained in:
Dragon Fire
2020-02-02 15:01:23 -05:00
parent d16de09060
commit f54beefa1b
+1 -1
View File
@@ -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}`);