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