A scouting aid bot
- Python 100%
| .gitignore | ||
| .pylintrc | ||
| key_.py | ||
| main.py | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
ScoutBot
This is ScoutBot, it helps you run scouting data. It will do what you tell it to. Please add functionality so it gets used, otherwise it will be lonely.
Set up:
- Python 3.9+
- Poetry
pip install poetryorpip3 install poetrydepending on your environment - Get a read-key from TBA: https://www.thebluealliance.com/account
- Clone Repo:
git clone git@github.com:IronRiders/scoutbot.git - Install Environment:
poetry install - Activate Environment:
poetry shell - Follow instructions in
key_.pyas a template to use your key
To update:
- Run
git pull
To run:
- Activate Environment:
poetry shell - Run:
python main.py
Notes:
This project used to use the TBA API (https://github.com/TBA-API/tba-api-client-python) built for python, but its codebase and useage was strange/out-of-date.
- For exapmle the "If-None-Match" etag system was out of date and the code wouldn't recognize things already cached. Instead the codebase seemed to be using the phrase "If-Modified-Since" which isn't recognized by the API.
- In addition there was a lot of things happening behind the scene with typing the responses which made useage confusing. Moving to
requestsallows better control and standard json deserialization to dictionaries/lists which are more intuitive to work with.