Better Emojify

This commit is contained in:
Daniel Odendahl Jr
2017-08-17 02:36:09 +00:00
parent 7902473f25
commit 0b7bcec836
2 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ module.exports = class EmojifyCommand extends Command {
prompt: 'What text would you like to convert to emoji?',
type: 'string',
validate: text => {
if (letterTrans(text.toLowerCase(), dictionary).length < 2000) return true;
if (letterTrans(text.toLowerCase(), dictionary, ' ').length < 2000) return true;
return 'Your text is too long.';
},
parse: text => text.toLowerCase()
@@ -27,6 +27,6 @@ module.exports = class EmojifyCommand extends Command {
run(msg, args) {
const { text } = args;
return msg.say(letterTrans(text, dictionary));
return msg.say(letterTrans(text, dictionary, ' '));
}
};