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 = ["+", "-", "*", "/", "(", ")", " "];
|
var allowed = ["+", "-", "*", "/", "(", ")", " "];
|
||||||
exports.run = (client, message, args) => {
|
exports.run = (client, message, args) => {
|
||||||
let exercise = args.join(" ");
|
let exercise = args.join("").trim();
|
||||||
|
|
||||||
if (!exercise) {
|
if (!exercise) {
|
||||||
return message.channel.send(
|
return message.channel.send(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue