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