Add additional stories

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-07 10:52:20 -05:00
parent 39efc2608c
commit 602491698d

View File

@ -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].toLowerCase().charAt(0).includes(verbArray)) {
if (phrase[iteration].toLowerCase().charAt(0).includes(verbArray.charAt(0))) {
aAn = "an ";
} else {
aAn = "a ";