This plugin is an experiment using the NBA's APIs to make their data & statistics easily accessible in ChatGPT.
Built with the nba_api client to access NBA APIs.
To install the required packages for this plugin, run the following command:
pip install -r requirements.txt
To run the plugin, enter the following command:
python main.py
Once the local server is running:
- Navigate to https://chat.openai.com.
- In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
- Select "Plugin store"
- Select "Develop your own plugin"
- Enter in
localhost:5003
since this is the URL the server is running on locally, then select "Find manifest file".
Start asking a question relevant to the plugin, like "Is Raymond Felton still active in the NBA?", or "Get me today's games."
/scoreboard
: Get today's scheduled NBA games. Returns results in the format below:{gameId}: {awayTeam} vs. {homeTeam} @ {gameTimeLTZ}
- Example:
Celtics vs. 76ers at 7:30 PM Eastern Time
/player/:player_name
: Returns basic information about the requested player, notably if they are active or not.