diff --git a/commands/edit-text/yoda.js b/commands/edit-text/yoda.js index 5c350ca9..06c4a881 100644 --- a/commands/edit-text/yoda.js +++ b/commands/edit-text/yoda.js @@ -53,6 +53,7 @@ module.exports = class YodaCommand extends Command { const split = sentence.split(' '); return split.map((word, i) => i === 0 || word === 'i' ? firstUpperCase(word) : word).join(' '); }); + if (newSentences.length === 1) newSentences.push('.'); return `${newSentences.join('. ').trim()} ${ends[Math.floor(Math.random() * ends.length)]}`; } };