| name | place-bets |
| description | Use when placing bets on Lengjan. Previews pending bets, then places after confirmation. |
| argument-hint | [--league LEAGUE] [--today] [--date YYYY-MM-DD] |
/place-bets — Preview and place bets on Lengjan
Two-step workflow: preview pending bets, discuss with the user, then place. Both
scripts read from data/decisions/recommendations/ and dedup against
data/decisions/ledger/ automatically — recommendations already in the ledger
are never re-presented.
The placer is local-only — LENGJAN_USER / LENGJAN_PASS come from
.Renviron. Never run on CI (enforced by test-placer-ci-isolation.R).
Step 1: Preview
Show what a live run would place. No browser is opened.
cd /Users/brynjolfurjonsson/sports && Rscript scripts/preview_bets.R
Filter to a single league, today, or a specific date:
Rscript scripts/preview_bets.R --league football_iceland
Rscript scripts/preview_bets.R --today
Rscript scripts/preview_bets.R --date 2026-04-26
Present the output to the user. Then ask:
- "Want me to place all of these, or do you want to skip/adjust any?"
- If there are bets on multiple dates, ask whether to place all dates or just today/tomorrow.
Listen for adjustments:
- "Skip #3 and #7" —
place_bets.R has no --exclude flag; tell the user
they can answer at the per-bet prompt instead.