Minor Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-04-12 21:12:51 +00:00
parent ced554d4a7
commit 41ed83f25e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ module.exports = class MorseCommand extends Command {
prompt: 'What text would you like to convert to morse?', prompt: 'What text would you like to convert to morse?',
type: 'string', type: 'string',
validate: content => { validate: content => {
if (translator.letterTrans(content, morse).length < 1900) { if (translator.letterTrans(content, morse, ' ').length < 1900) {
return true; return true;
} }
return 'Your text to encode is too long.'; return 'Your text to encode is too long.';
+1 -1
View File
@@ -32,4 +32,4 @@ module.exports = class TemmieCommand extends Command {
const temmized = translator.wordTrans(text, dictionary); const temmized = translator.wordTrans(text, dictionary);
return message.say(`\u180E${temmized}`); return message.say(`\u180E${temmized}`);
} }
}; };
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiaobot", "name": "xiaobot",
"version": "24.0.0", "version": "24.0.1",
"description": "A Discord Bot", "description": "A Discord Bot",
"main": "shardingmanager.js", "main": "shardingmanager.js",
"repository": { "repository": {