IsThereAnyDeal integration #95

Merged
sirdog3355 merged 4 commits from feat/itad-integration into dev 2025-10-28 05:21:46 -04:00
sirdog3355 commented 2025-10-28 05:04:00 -04:00 (Migrated from github.com)

We are finally here. God, this sucked. I learned so much. But it also sucked.

Oof.

  • Persistent storage introduced in the form of a SQLITE database.
  • Created folder classes/ and added 3 classes:
    • db_rgit_games_handler.py (Class: DBRGITGames): Handler for interacting with the RGIT table in the SQLITE database.
    • db_get_deals_handler.py (Class: ItadGameDealsHandler): Handler for getting deals from a list of IsThereAnyDeal game UUIDs.
    • db_get_games_handler.py (Class: ItadGameSearchHandler): Handler for giving the IsThereAnyDeal API a game title and getting specific information about the game back.
  • File added cogs/itad.py which adds 3 commands.
    • /rgit-edit: Add or remove games from the RGIT table of the SQLITE database by querying the IsThereAnyDeal API with a game title.
    • /rgit-deals: Get a list of available deals for all the games on the RGIT table.
    • /rgit-list: Get an (ugly) output of every game in the RGIT table.

No new variables introduced. Making anything configurable will be a future-release deal. Files Dockerfile and docker-compose.yml updated to hopefully make this work in a containerized environment.

Closes #85

We are finally here. God, this sucked. I learned so much. But it also sucked. Oof. - Persistent storage introduced in the form of a SQLITE database. - Created folder `classes/` and added 3 classes: - `db_rgit_games_handler.py` (Class: `DBRGITGames`): Handler for interacting with the RGIT table in the SQLITE database. - `db_get_deals_handler.py` (Class: `ItadGameDealsHandler`): Handler for getting deals from a list of IsThereAnyDeal game UUIDs. - `db_get_games_handler.py` (Class: `ItadGameSearchHandler`): Handler for giving the IsThereAnyDeal API a game title and getting specific information about the game back. - File added `cogs/itad.py` which adds 3 commands. - `/rgit-edit`: Add or remove games from the RGIT table of the SQLITE database by querying the IsThereAnyDeal API with a game title. - `/rgit-deals`: Get a list of available deals for all the games on the RGIT table. - `/rgit-list`: Get an (ugly) output of every game in the RGIT table. No new variables introduced. Making anything configurable will be a future-release deal. Files `Dockerfile` and `docker-compose.yml` updated to hopefully make this work in a containerized environment. Closes #85
Sign in to join this conversation.
No description provided.