Add Linux themed madlib written by ChatGPT

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-06 18:57:38 +07:00
parent 255516340e
commit 3e4d704d06
1 changed files with 1 additions and 1 deletions

@ -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 ";