Add IsThereAnyDeal as a deal source alongside CheapShark
Users can now choose between CheapShark, ITAD, or both via the DEAL_SOURCES env var (comma-separated, default: "cheapshark"). When "itad" is included, the bot polls GET /deals/v2 for current deals with discount/price filtering and posts them with the same formatting style. ITAD deals include built-in historical low detection via the API's deal flags. Preflight checks enforce ITAD_API_KEY when ITAD is a configured deal source. https://claude.ai/code/session_01B7YPGrE3NatkwadCXVjv2j
This commit is contained in:
@@ -4,9 +4,13 @@ MATRIX_BOT_USER_ID=@dealsbot:example.com
|
||||
MATRIX_BOT_ACCESS_TOKEN=syt_...
|
||||
MATRIX_DEALS_ROOM_ID=!roomid:example.com
|
||||
|
||||
# IsThereAnyDeal API key (optional — enables historical low detection)
|
||||
# IsThereAnyDeal API key (optional — enables historical low detection and ITAD deals)
|
||||
ITAD_API_KEY=
|
||||
|
||||
# Deal sources: comma-separated list (cheapshark, itad, or both)
|
||||
# Requires ITAD_API_KEY when "itad" is included
|
||||
DEAL_SOURCES=cheapshark
|
||||
|
||||
# Deal filtering
|
||||
MIN_DEAL_RATING=8.0
|
||||
MIN_DISCOUNT_PERCENT=50
|
||||
|
||||
Reference in New Issue
Block a user