mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
say, embed, and code
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user