From 5af2f003d032583fab903f52425ad08404c543b5 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Wed, 18 Sep 2024 09:24:09 +0200 Subject: [PATCH] Fix cannot send an empty message on ask command --- commands/misc/ask.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/misc/ask.js b/commands/misc/ask.js index 006c633..5aea9d4 100644 --- a/commands/misc/ask.js +++ b/commands/misc/ask.js @@ -9,6 +9,7 @@ module.exports = { let question = args.join(" ").split(" or "); answer = question[randomNumber(0, question.length -1)]; } + answer = answer.trim(); if(answer === "") answer = randomNumber(0, 1) === 1 ? "Yes" : "No"; message.channel.send(answer)