Fix ask command not splitting all 'or's correctly
This commit is contained in:
parent
f8268256e3
commit
146e22d281
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module.exports = {
|
|||
execute({message, args}) {
|
||||
let answer = "";
|
||||
if(args.length > 2 && args.includes("or")){
|
||||
let question = args.join(" ").split("or ");
|
||||
let question = args.join(" ").split(" or ");
|
||||
answer = question[randomNumber(0, question.length -1)];
|
||||
}
|
||||
if(answer === "")
|
||||
|
|
Loading…
Add table
Reference in a new issue