Fixed bug: ~calculate 4 4 :) | Remove white spaces
This commit is contained in:
parent
18db7e597d
commit
98a5895caa
1 changed files with 2 additions and 2 deletions
|
@ -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]"
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue