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