mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Change Variable Names, Remove Useless Commands
This commit is contained in:
@@ -13,8 +13,8 @@ module.exports = class PirateCommand extends Command {
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to convert to pirate?',
|
||||
type: 'string',
|
||||
validate: content => {
|
||||
if (wordTrans(content, dictionary).length < 1999)
|
||||
validate: text => {
|
||||
if (wordTrans(text, dictionary).length < 1999)
|
||||
return true;
|
||||
return 'Your message content is too long.';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user