mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Update to latest
This commit is contained in:
@@ -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)
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user