Translate Fix

This commit is contained in:
Daniel Odendahl Jr
2017-06-25 15:01:57 +00:00
parent 7d754e2e97
commit 42daa44631
+5 -1
View File
@@ -17,7 +17,11 @@ module.exports = class TranslateCommand extends Command {
{
key: 'text',
prompt: 'What text would you like to translate?',
type: 'string'
type: 'string',
validate: (text) => {
if (text.length < 500) return true;
else return 'Text must be under 500 characters.';
}
},
{
key: 'to',