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