mirror of
https://github.com/hanzoskill/bring-shopping.git
synced 2026-10-30 21:13:14 +00:00
1.5 KiB
1.5 KiB
name, description
| name | description |
|---|---|
| bring-shopping | Manage Bring! shopping lists via the unofficial bring-shopping Node.js library using email/password login. Use for listing lists, reading items, adding/removing items, and checking/unchecking items when API-style access is acceptable. |
Bring Shopping
Overview
Use the bring-shopping npm package to access Bring! lists with email/password credentials. Default list is "Willig" unless the user specifies otherwise.
Quick Start
- Install dependency in the skill folder:
npm install bring-shopping
- Set environment variables in the Bot config (preferred) or shell:
BRING_EMAILandBRING_PASSWORD
- Run the CLI script:
node scripts/bring_cli.mjs items --list "Willig"
Tasks
Show lists
node scripts/bring_cli.mjs lists
Show items
node scripts/bring_cli.mjs items --list "Willig"
Add items
node scripts/bring_cli.mjs add --item "Milch" --spec "2L" --list "Willig"
Remove items
node scripts/bring_cli.mjs remove --item "Milch" --list "Willig"
Check items
node scripts/bring_cli.mjs check --item "Milch" --list "Willig"
Uncheck items
node scripts/bring_cli.mjs uncheck --item "Milch" --spec "2L" --list "Willig"
Notes
- Store credentials in Bot config env so they are not bundled with the skill.
- If the list name is ambiguous, run
listsand ask which list to use. - If an item is already checked,
uncheckre-adds it to the purchase list.