backported automatically determining story count

master
Caleb Fontenot 2021-02-05 08:45:17 +07:00
parent 3946fb8ee6
commit 1e7b5643aa
9 changed files with 24 additions and 7 deletions

@ -0,0 +1,5 @@
MadLib Gameshow
sped on down! You're the next contestant on asdf's new gameshow, MadLib! Here's how it works. You will asdf over a asdf at a rate of df mph. After you jump over that item, you will sdfg over to the zxcv zxcv and press the xcvb at the end. xcvbxfhds time wins! Oh. I forgot to introduce our host. He's a sdfgsdfgxcfg person who can't wait to xxcfgdfb in to the show. Please welcome, fxcgxcfg! Alright players, on your mark. Get set. ssdfgxcfgxcgf! Alright, here goes xfhfhdfgd on the first stage of the competition. And.. WOAH! He just dxfgxfggd over the thing! That's gonna hurt him tommorow. But it'll be all worth it after he wins the grand prize of xdgfgx dollars! Which he says will go towards xxdfgxdfg. Very xdfgxfe investment, but it's his money! Here he comes around the second leg. AND WOAH, AGAIN HE LOOKS sdgfdsgdfdgs ON NETWORK TELEVISION! This is what primetime is all about here on the network of kjfdsglksdjfghdsg. And, he presses it! He finishes with a time of lkrhweruwhgs. Will that be enough to win? Find out on gbjksdhfgjkdshg when sjkdfhgsjkdgfh will challenge him for the grand prize. For all of us here at MadLib, good night everyone!
Generated by Caleb Fontenot's madlibs.py

@ -63,13 +63,6 @@ else:
print('\n')
# Now on to business!
# Load files
f = open('storyCount.txt', 'r')
StoryCount = f.read()
IntStoryCount = int(StoryCount)
print("Detected", IntStoryCount, "stories")
# Randomly pick what story we will use
story = random.randint(1, IntStoryCount)
#Declare vars
storyContentStr = []
storyNameStr = []
@ -85,6 +78,10 @@ for line in f.readlines():
storyNameStr.append(storyName)
i+=1
f.close()
IntStoryCount = len(storyNameStr)
print("Detected", int(IntStoryCount), "stories")
# Randomly pick what story we will use
story = random.randint(1, IntStoryCount)
print(storyNameStr)
# Print current story title, but remove the brackets first
filteredTitle = re.findall(r'<(.*?)>', storyNameStr[story-1])

@ -0,0 +1,5 @@
NFL on What Channel?!
The NFL is back! On our new home! Welcome to the most in-depth pregame show in all of pregame shows. This is the NFL on asadfsa brought to you by asdf! Hang tight and we'll be right back! Scene 2: Welcome in to Sunday on as! My name is asdfasdfasd, and I am sitting alongside four celebrities, asf, asdf, asdf, and asdf. Welcome guys. Week asdf is looking promising as we have three key games to focus on. First off, the asd take on the fewfewaxdvdxg, our afternoon game, the gasdg vs the eagsdg. Finally, our primetime game, the ra vs the asdg. A lot of action today, and we will break that down soon in the asdgas coming. Before we do anything, let's take a live look inside dgas where the first key match will be playred, and we have our field reporter, dgas who is covering our action. Scene 3: Alright, thank you. Now, it's time for kickoff of our first key game. We hope you enjoy the game and we will dg you at halftime.
Generated by Caleb Fontenot's madlibs.py

@ -0,0 +1,5 @@
caleb wanted me to do a thing now it will commence
Once upon a time in the land of asdf, there was a lovely little chap called asdf, but everyone just asdf to call him asdf. You see, he was the hero of the nearby city of asdf, and that made the mayor of the city he lived in, asf, very unhappy. So, in an act of asfd, he created his own asf army to take over the world. Now asfd did not like this, so he afs up to the main robot, which the mayor was in, and told him "afs". The mayor, hearing those words, instantly surrendered and afs. He was then charged for 3 major acts of asf.
Generated by Caleb Fontenot's madlibs.py

@ -0,0 +1,5 @@
Three Little Pigs
Once upon a time, there were three beautiful pigs. One day, their mother said, "You are all grown up and must flying on your own." So they left to running their houses. The first little pig wanted only to meltdown all day and quickly built his house out of chickens. The second little pig wanted to jumping and soaring all day so he sharked his house with London's. The third knocked pig knew the wolf lived nearby and worked hard to fought his house out of books. One day, the wolf knocked on the first pig's potion. "Let me in or I'll blankets your house down!" The pig didn't, so the wolf shooketh down the Obama. The wolf knocked on the second pig's pigs. "Let me in or I'll blow your pencil down!" The pig didn't, so the wolf decided down the house. Then the wolf knocked on the third frustrating pig's door. "Let me in or I'll blow your house down!" The little pig didn't, so the wolf lost and eaten.He could not blow the house down. All the pigs went to live in the Tory house and they all adventured happily ever after.
Generated by Caleb Fontenot's madlibs.py