Cleaner Looking args

This commit is contained in:
Daniel Odendahl Jr
2017-05-02 17:54:07 +00:00
parent 57ee7fa82b
commit 3bb21c2df0
83 changed files with 787 additions and 616 deletions
+11 -9
View File
@@ -7,16 +7,18 @@ module.exports = class CowsayCommand extends Command {
group: 'textedit',
memberName: 'cowsay',
description: 'Converts text to cowsay.',
args: [{
key: 'text',
prompt: 'What text would you like the cow to say?',
type: 'string',
validate: text => {
if (text.length < 1500)
return true;
return `Please keep your content under 1500 characters, you have ${text.length}.`;
args: [
{
key: 'text',
prompt: 'What text would you like the cow to say?',
type: 'string',
validate: text => {
if (text.length < 1500)
return true;
return `Please keep your content under 1500 characters, you have ${text.length}.`;
}
}
}]
]
});
}