mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
More Clean-Ups
This commit is contained in:
@@ -20,7 +20,8 @@ module.exports = class MathCommand extends Command {
|
||||
const { expression } = args;
|
||||
try {
|
||||
const solved = math.eval(expression);
|
||||
return message.say(solved).catch(() => message.say(':x: Error! Invalid statement!'));
|
||||
return message.say(solved)
|
||||
.catch(() => message.say(':x: Error! Invalid statement!'));
|
||||
} catch (err) {
|
||||
return message.say(':x: Error! Invalid statement!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user