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
24 lines
690 B
Plaintext
24 lines
690 B
Plaintext
# Matrix connection
|
|
MATRIX_HOMESERVER_URL=https://matrix.example.com
|
|
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 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
|
|
MAX_PRICE_USD=20
|
|
|
|
# Send an intro message to the room on startup (true/false)
|
|
SEND_INTRO_MESSAGE=false
|
|
|
|
# Database path (inside the container, mount a volume for persistence)
|
|
DATABASE_PATH=/data/deals.db
|