mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
22.0.0
This commit is contained in:
@@ -14,11 +14,14 @@ module.exports = class TemmieCommand extends Command {
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to convert to Temmie speak?',
|
||||
type: 'string',
|
||||
validate: text => {
|
||||
if (wordTrans(text, dictionary).length < 1999) return true;
|
||||
return 'Your text is too long.';
|
||||
validate: (text) => {
|
||||
if (wordTrans(text, dictionary).length < 1999) {
|
||||
return true;
|
||||
} else {
|
||||
return 'Your text is too long.';
|
||||
}
|
||||
},
|
||||
parse: text => wordTrans(text, dictionary)
|
||||
parse: (text) => wordTrans(text, dictionary)
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user