More Clean-Ups

This commit is contained in:
Daniel Odendahl Jr
2017-04-25 14:04:07 +00:00
parent d779aa5f21
commit 657b7b727d
10 changed files with 15 additions and 12 deletions
+2 -1
View File
@@ -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!');
}