diff --git a/src/commands/calculate.js b/src/commands/calculate.js index e7737b3..8805489 100644 --- a/src/commands/calculate.js +++ b/src/commands/calculate.js @@ -1,6 +1,6 @@ var allowed = ["+", "-", "*", "/", "(", ")", " "]; exports.run = (client, message, args) => { - let exercise = args.join(" "); + let exercise = args.join("").trim(); if (!exercise) { return message.channel.send( @@ -39,4 +39,4 @@ exports.help = { category: "Utility", description: "Solves basic mathematical equations.", usage: "calculate [equation]" -}; \ No newline at end of file +};