This commit is contained in:
Dragon Fire
2020-12-15 17:37:18 -05:00
parent c955b56eae
commit 7ca89963a6
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class MathCommand extends Command {
}
run(msg, { expression }) {
try {
try {
const evaluated = Parser.evaluate(expression).toString();
return msg.reply(evaluated).catch(() => msg.reply('Invalid expression.'));
} catch {