Fix Everything

This commit is contained in:
Daniel Odendahl Jr
2017-06-01 18:31:20 +00:00
parent 66706d9c7b
commit 4e1f83a30f
85 changed files with 721 additions and 851 deletions
+5 -8
View File
@@ -13,13 +13,9 @@ module.exports = class BinaryCommand extends Command {
prompt: 'What text would you like to convert to binary?',
type: 'string',
validate: (text) => {
if (this.binary(text).length < 2000) {
return true;
} else {
return 'Your text is too long.';
}
},
parse: (text) => this.binary(text)
if (this.binary(text).length < 2000) return true;
else return 'Your text is too long.';
}
}
]
});
@@ -27,7 +23,8 @@ module.exports = class BinaryCommand extends Command {
run(msg, args) {
const { text } = args;
return msg.say(text);
const converted = this.binary(text);
return msg.say(converted);
}
binary(text) {