# Set a 'storing' counter for audio clips. storing_c = 0 # Wash, Rinse, Repeat. while True: print("Collecting tweets!") # Retrieves the messages container. tweets = Twitter.get_tweets() # Create the llm file LLM.build_llm(tweets) # Send a message to the display to retrieve the LLM file. Update.update_display(Settings.filename) # Play audio when a 'storing' is discovered. if storing_c < tweets.storingen: # Play the audio file. Audio.storing() # Set the counter to the 'storing' level. storing_c = tweets.storingen # Wait for a set amount of time. time.sleep(Settings.tweet_loop) # Stops the HTTP server that is serving llm files. httpd.stop()