Inspiration'

We are two sports fans who wanted to take on a project that would challenge us in our own ways. For Ben, this meant learning a new python framework and seeing some real applications of python. For mesha, he wanted to develop stronger back-end skills.

What it does

Displays the current team, stat line, and links to the NBA player stat page for all active NBA players.

How we built it

We built the discord bot using discord.py. In order to get up-to-date data on all players, we created a database with all the players and their information. We schedule a python script each morning to get all the players' names and stats, and then update the database with those stats.

Challenges we ran into

We had an early issue with the server crashing, due to a connection to the backend that never got closed. We also faced issues when dealing with player name capitalization, since we had to normalize the spelling to proper title case but some names (i.e. "LeBron James") do not follow proper title case. ## ##Accomplishments that we're proud of This was Ben's first Hackathon as well as first software project outside of school. We are proud to have completed the project we set out to and to have learned a lot along the way. For Mesha, this was his first time hosting on Heroku. We are proud to have successfully deployed two deployments for our project.

What we learned

We learned about hosting python and node applications on Heroku. Learned about how to use python for real-world applications. Learned how to store data in a PostgreSQL database.

What's next for NBA Stat Bot

The next step for NBA stat bot is to expand to having stats for more leagues than just the NBA.

Share this project:

Updates