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