mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Random Fixes
This commit is contained in:
@@ -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!'));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user