From e359603352461957e171e002c9a4918b5397611f Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 12 Apr 2022 21:37:01 +0200 Subject: [PATCH] Now you can have as many "or"s as you want --- commands/misc/ask.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/misc/ask.js b/commands/misc/ask.js index 54f1724..fd91a10 100644 --- a/commands/misc/ask.js +++ b/commands/misc/ask.js @@ -7,7 +7,7 @@ module.exports = { let answer = randomNumber(0, 1) === 1 ? "Yes" : "No"; if(args.length > 2 && args.includes("or")){ let question = args.join(" ").split("or "); - answer = randomNumber(0, 1) === 1 ? question[0] : question[1]; + answer = question[randomNumber(0, question.length -1)]; } message.channel.send(answer) }