From 3e4d704d06d8fe680b8c3294657c7c2ac59d4bd4 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 6 Apr 2023 18:57:38 -0500 Subject: [PATCH] Add Linux themed madlib written by ChatGPT --- main.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cjs b/main.cjs index c0f5cd5..2f3bf82 100644 --- a/main.cjs +++ b/main.cjs @@ -273,7 +273,7 @@ global.madlibNextPrompt = function madlibNextPrompt(client, iteration, selectedS const channel = client.channels.cache.get(madlibState.gameChannel); let aAn; let verbArray = ["a", "e", "i", "o", "u"]; - if (phrase[iteration].charAt(0).includes(verbArray)) { + if (phrase[iteration].charAt(0).toLowerCase().includes(verbArray)) { aAn = "an "; } else { aAn = "a ";