Fixed bug: ~calculate 4 4 :) | Remove white spaces

This commit is contained in:
TheMaestroo 2020-08-28 14:20:59 +02:00 committed by GitHub
parent 18db7e597d
commit 98a5895caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]"
};
};