Random Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 02:50:42 +00:00
parent 75425d6cda
commit 9a4abf428b
7 changed files with 14 additions and 39 deletions
+1 -6
View File
@@ -18,11 +18,6 @@ module.exports = class BinaryCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
let turnToBinary = message.content.split(" ").slice(1).join(" ");
try {
message.channel.send(stringToBinary(turnToBinary));
}
catch (err) {
message.channel.send(':x: Error! Translation is too long, or nothing was entered!');
}
message.channel.send(stringToBinary(turnToBinary)).catch(error => message.channel.send(':x: Error! Translation is too long, or nothing was entered!'));
}
};