Fix ask command not splitting all 'or's correctly

This commit is contained in:
SileNce5k 2024-09-18 09:20:35 +02:00
parent f8268256e3
commit 146e22d281
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -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 === "")