nba
nba copied to clipboard
`commonTeamRoster` is out of date
Jrue Holiday is listed on the Bucks, Poole on the Warriors, etc
On a similar note, nba.playerIdFromName wouldn't find players like "bronny". I revived this old chat bot recently and implemented a new playerIdFromName here: https://github.com/brandly/hubot-nba/commit/1b13734535b668fb5e13b99498324157d2aba896
It uses the https://www.nba.com/players page which is a Next.js site and has the full NBA roster in a JSON payload sitting in a script tag. Just wanted to share in case it's useful to you! Thanks