Update to latest

This commit is contained in:
Daniel Odendahl Jr
2017-11-02 22:42:12 +00:00
parent 96c762a552
commit 7560246f26
37 changed files with 89 additions and 120 deletions
+2 -8
View File
@@ -20,20 +20,14 @@ module.exports = class MemeCommand extends Command {
key: 'top',
prompt: 'What should the top row of the meme to be?',
type: 'string',
validate: top => {
if (top.length < 200) return true;
return 'Invalid top text, please keep the top text under 200 characters.';
},
max: 200,
parse: top => encodeURIComponent(top)
},
{
key: 'bottom',
prompt: 'What should the bottom row of the meme to be?',
type: 'string',
validate: bottom => {
if (bottom.length < 200) return true;
return 'Invalid bottom text, please keep the bottom text under 200 characters.';
},
max: 200,
parse: bottom => encodeURIComponent(bottom)
}
]