mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Minor Fixes
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = class MorseCommand extends Command {
|
||||
prompt: 'What text would you like to convert to morse?',
|
||||
type: 'string',
|
||||
validate: content => {
|
||||
if (translator.letterTrans(content, morse).length < 1900) {
|
||||
if (translator.letterTrans(content, morse, ' ').length < 1900) {
|
||||
return true;
|
||||
}
|
||||
return 'Your text to encode is too long.';
|
||||
|
||||
@@ -32,4 +32,4 @@ module.exports = class TemmieCommand extends Command {
|
||||
const temmized = translator.wordTrans(text, dictionary);
|
||||
return message.say(`\u180E${temmized}`);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user