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
+14 -12
View File
@@ -8,18 +8,20 @@ module.exports = class ZalgoCommand extends Command {
group: 'textedit',
memberName: 'zalgo',
description: 'Zalgoizes Text.',
args: [{
key: 'text',
prompt: 'What text would you like to convert to zalgo?',
type: 'string',
validate: text => {
if (text.length < 500) {
return true;
}
return `Please keep your text under 500 characters, you have ${text.length}.`;
},
parse: text => zalgo(text)
}]
args: [
{
key: 'text',
prompt: 'What text would you like to convert to zalgo?',
type: 'string',
validate: text => {
if (text.length < 500) {
return true;
}
return `Please keep your text under 500 characters, you have ${text.length}.`;
},
parse: text => zalgo(text)
}
]
});
}