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
+5 -10
View File
@@ -22,16 +22,11 @@ module.exports = class CowsayCommand extends commando.Command {
}
else {
let turnToCowsay = message.content.split(" ").slice(1).join(" ");
try {
message.channel.sendCode(null, cowsay.say({
text: turnToCowsay,
e: "oO",
T: "U "
}));
}
catch (err) {
message.channel.send(':x: Error! Perhaps the content is too long?');
}
message.channel.sendCode(null, cowsay.say({
text: turnToCowsay,
e: "oO",
T: "U "
})).catch(error => message.channel.send(':x: Error! Perhaps the content is too long?'));
}
}
};