Add All Validators.

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 07:05:13 +00:00
parent be79696113
commit a604110dfc
9 changed files with 35 additions and 12 deletions
+7 -1
View File
@@ -297,7 +297,13 @@ module.exports = class TemmieCommand extends commando.Command {
args: [{
key: 'text',
prompt: 'What text would you like to convert to Temmie speak?',
type: 'string'
type: 'string',
validate: content => {
if (temmize(content).length > 1950) {
return 'Your message content is too long.';
}
return true;
}
}]
});
}