Add additional stories
This commit is contained in:
parent
cf0840a541
commit
943643251f
2
main.cjs
2
main.cjs
@ -275,7 +275,7 @@ global.madlibNextPrompt = function madlibNextPrompt(client, iteration, selectedS
|
|||||||
let vowelArray = ["a", "e", "i", "o", "u"];
|
let vowelArray = ["a", "e", "i", "o", "u"];
|
||||||
aAn = "a ";
|
aAn = "a ";
|
||||||
for (let i = 0; i < vowelArray.length; ++i) {
|
for (let i = 0; i < vowelArray.length; ++i) {
|
||||||
if (phrase[iteration].toLowerCase().startsWith(vowelArray)) {
|
if (phrase[iteration].toLowerCase().charAt(0) == (vowelArray[i].charAt(0))) {
|
||||||
aAn = "an ";
|
aAn = "an ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user