The bot stopped posting because sortBy=recent only returned low-discount deals, and desc=1 was inverting the sort order for savings/DealRating queries. Now fetches both recent and top-rated deals, merges with dedup. Lowered default thresholds to 20% min discount, 7.0 min rating, and $45 max price. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
# Matrix connection
|
|
MATRIX_HOMESERVER_URL=https://matrix.example.com
|
|
MATRIX_BOT_USER_ID=@dealsbot:example.com
|
|
MATRIX_BOT_ACCESS_TOKEN=syt_...
|
|
# Optional: enables token auto-refresh, cross-signing, and device persistence
|
|
# MATRIX_BOT_PASSWORD=
|
|
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
|
|
|
|
# ITAD countries: comma-separated ISO 3166-1 alpha-2 country codes
|
|
# Deals are fetched for each country and merged (duplicates removed).
|
|
# Examples: US, CA, GB, DE, FR, AU, BR, JP
|
|
ITAD_COUNTRIES=US
|
|
|
|
# Currency display
|
|
# DEFAULT_CURRENCY is shown first; EXTRA_CURRENCIES are shown after it.
|
|
DEFAULT_CURRENCY=USD
|
|
EXTRA_CURRENCIES=CAD,EUR,GBP
|
|
|
|
# CheapShark-specific filtering
|
|
# (Falls back to shared MIN_DISCOUNT_PERCENT / MAX_PRICE if not set)
|
|
#CHEAPSHARK_MIN_DISCOUNT=50
|
|
#CHEAPSHARK_MIN_RATING=8.0
|
|
#CHEAPSHARK_MAX_PRICE=20
|
|
|
|
# ITAD-specific filtering
|
|
# (Falls back to shared MIN_DISCOUNT_PERCENT / MAX_PRICE if not set)
|
|
#ITAD_MIN_DISCOUNT=50
|
|
#ITAD_MAX_PRICE=20
|
|
#ITAD_DEALS_LIMIT=200
|
|
|
|
# Shared filter defaults (used when source-specific values are not set)
|
|
MIN_DISCOUNT_PERCENT=20
|
|
MAX_PRICE=45
|
|
|
|
# Matrix threads — post deals into per-category threads instead of the room
|
|
# Categories: Game Deals, DLC Deals, Epic Free Games, Non-Game Deals
|
|
# When disabled (default), all deals post directly to the room timeline
|
|
# and non-game ITAD content is excluded (original behaviour).
|
|
#MATRIX_USE_THREADS=false
|
|
|
|
# Send an intro message to the room on startup (true/false)
|
|
SEND_INTRO_MESSAGE=false
|
|
|
|
# Database path
|
|
DATABASE_PATH=deals.db
|