diff --git a/commands/text-edit/emojify.js b/commands/text-edit/emojify.js index 26ba38b3..dcedb82b 100644 --- a/commands/text-edit/emojify.js +++ b/commands/text-edit/emojify.js @@ -16,9 +16,10 @@ module.exports = class EmojifyCommand extends Command { prompt: 'What text would you like to convert to emoji?', type: 'string', validate: text => { - if (letterTrans(text, dictionary).length < 2000) return true; + if (letterTrans(text.toLowerCase(), dictionary).length < 2000) return true; return 'Your text is too long.'; - } + }, + parse: text => text.toLowerCase() } ] }); @@ -26,6 +27,6 @@ module.exports = class EmojifyCommand extends Command { run(msg, args) { const { text } = args; - return msg.say(letterTrans(text.toLowerCase(), dictionary)); + return msg.say(letterTrans(text, dictionary)); } }; diff --git a/commands/text-edit/morse.js b/commands/text-edit/morse.js index 7dff5e01..5e9437fb 100644 --- a/commands/text-edit/morse.js +++ b/commands/text-edit/morse.js @@ -15,9 +15,10 @@ module.exports = class MorseCommand extends Command { prompt: 'What text would you like to convert to morse?', type: 'string', validate: text => { - if (letterTrans(text, dictionary, ' ').length < 2000) return true; + if (letterTrans(text.toLowerCase(), dictionary, ' ').length < 2000) return true; return 'Your text is too long.'; - } + }, + parse: text => text.toLowerCase() } ] }); @@ -25,6 +26,6 @@ module.exports = class MorseCommand extends Command { run(msg, args) { const { text } = args; - return msg.say(letterTrans(text.toLowerCase(), dictionary, ' ')); + return msg.say(letterTrans(text, dictionary, ' ')); } };