say, embed, and code

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 23:14:29 +00:00
parent 55b8969ead
commit 8d3613773a
97 changed files with 154 additions and 154 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ module.exports = class MathCommand extends commando.Command {
let expression = args.expression;
try {
let solved = math.eval(expression);
return message.channel.send(solved).catch(err => message.channel.send(":x: Error! Invalid statement!"));
return message.say(solved).catch(err => message.say(":x: Error! Invalid statement!"));
}
catch (err) {
return message.channel.send(":x: Error! Invalid statement!");
return message.say(":x: Error! Invalid statement!");
}
}
};