print(colored("<<madlibs.",'red')+colored("p",'yellow')+colored("y",'blue'),colored("- Written by Caleb Fontenot>>",'red'),'\n'"Project started on July 13, 2019")
print("I pull txt files in the directory you place me in for stories!"'\n''\n'"Run me with the --setup flag for instructions on setting a story up!"'\n')
# Notify if verbose
ifdebug==1:
print("Debug mode is enabled! Being verbose!",'\n')
else:
print('\n')
# Now on to business!
# Load files
f=open('storyCount.txt','r')
StoryCount=f.read()
IntStoryCount=int(StoryCount)
print("Detected",IntStoryCount,"stories")
# Count stories
# Randomly pick what story we will use
story=random.randint(1,IntStoryCount)
# Alright, let's get the data from stories.txt
f=open('stories.txt','r')
# This pulls the title from stories.txt
storyName=f.readline()
# This pulls the story from stories.txt
storyContent=f.readline()
# todo: remove characters from story identifier and make every even number be recognized as a story, and every odd as it's title
# Alright, now onto the tricky part. We need to filter out all of the bracketed words in stories.txt, putting them into a list, replacing them with incremental strings. We also need to count how many there are for later.