mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 11:21:16 +02:00
String Changes, Don't register tons of defaults
This commit is contained in:
@@ -31,10 +31,10 @@ module.exports = class MathCommand extends commando.Command {
|
||||
const expression = args.expression;
|
||||
try {
|
||||
const solved = math.eval(expression);
|
||||
return message.say(solved).catch(err => message.say(":x: Error! Invalid statement!"));
|
||||
return message.say(solved).catch(err => message.say(':x: Error! Invalid statement!'));
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Invalid statement!");
|
||||
return message.say(':x: Error! Invalid statement!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user