chooses the most popular word
adds it to the madlib.txt (story) file
submitting updates the votes file
Submitting words with the timer
An excited LoserFountain member!
We were inspired by the Twilio demo so we, knew we wanted to include the Twilio API in our project! We wanted to make a fun project to show off some of our skills while learning some new APIs!
We were also inspired by projects such as "Twitch Plays Pokemon" where the twitch chat can actually make commands and control the original pokemon games through those commands they have voted on!
What it does
Our application is a story generator that requires people to text words to our Twilio number in order to vote for the next word in the story. We have made a website that will interface with flask and pull the data from text files sent from the python in flask. This is so that the website will be updated with the results. So far we have the website made separately and the functionality of texting the number and voting for the top word via the command line on localhost.
How we built it
We built this project using Flask and Twilio API. We started off making a barebones HTML file to be our website and incorporating that into the flask code! Afterwards we signed up for our Twilio account, downloaded ngrok and began coding the actual sms functionality our program would have.
Challenges we ran into
None of us were experienced with Flask in python or using the Twilio api, so it was a real learning experience. In the end, we couldn't get our website to be able to read the text files outputted by our flask file, but that flask file is fully functional!
Accomplishments that we're proud of
We're very proud that we were able to finish the flask file and get a real working implementation of our idea. In the future we'll probably come back to this project and flesh it out!
What we learned
We learned how to use Flask and the Twilio api. None of us really had any experience with either, so we had to do a lot of learning here at BostonHacks!
What's next for LoserFountain
Get fully functional updating on the website for LoserFountain, so players can see the updates of their story!