mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Fix mathjs warning
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = class MathCommand extends Command {
|
||||
|
||||
run(msg, { expression }) {
|
||||
try {
|
||||
const evaluated = math.eval(expression).toString();
|
||||
const evaluated = math.evalulate(expression).toString();
|
||||
return msg.reply(evaluated).catch(() => msg.reply('Invalid expression.'));
|
||||
} catch (err) {
|
||||
return msg.reply('Invalid expression.');
|
||||
|
||||
Reference in New Issue
Block a user