Brown Dust 2 ๅ จ่ชๅจ็ญพๅฐ + ๅ ๆข็ ไธ้ฎๅ ๆข for OpenClaw.
- Daily attendance reward (free item every day)
- Weekly attendance reward
- Event attendance (7-day login event)
- All via direct API calls โ no browser automation needed
- Auto-scrape latest codes from BD2Pulse
- One-click redeem all codes via official API
- Reports: new success / already redeemed / expired
clawhub install brown-dust-2Or clone:
git clone https://github.com/XiaoYiWeio/brown-dust-2.git ~/.openclaw/workspace/skills/brown-dust-2- Log in to BD2 Web Shop with Google
- Press F12 โ Console โ paste:
JSON.parse(localStorage.getItem("session-storage")).state.session.accessToken
- Save the token:
python3 scripts/signin.py --save-token "YOUR_TOKEN"
python3 scripts/redeem.py --save-nickname "YourNickname"- "BD2็ญพๅฐ" โ daily/weekly/event sign-in
- "BD2ๅ ๆข็ " โ auto-redeem all latest codes
- "BD2ๅ จ็ญพ" โ sign-in + redeem codes
# Sign-in (daily + weekly + event)
python3 scripts/signin.py
# Check event info
python3 scripts/signin.py --event-info
# Daily only
python3 scripts/signin.py --daily-only
# Redeem all codes
python3 scripts/redeem.py
# List codes without redeeming
python3 scripts/redeem.py --list
# JSON output (both scripts support --json)
python3 scripts/signin.py --jsonbrown-dust-2/
โโโ SKILL.md # OpenClaw skill definition
โโโ persona.md # Agent interaction guide
โโโ README.md
โโโ scripts/
โโโ signin.py # Web shop sign-in (daily/weekly/event)
โโโ redeem.py # Gift code scraper + redeemer
This skill reverse-engineered the official BD2 Web Shop API:
| Function | API | Auth |
|---|---|---|
| Daily attend | POST /api/user/attend {type:0} |
Bearer token |
| Weekly attend | POST /api/user/attend {type:1} |
Bearer token |
| Event attend | POST /api/event/attend-reward |
Bearer token |
| Event info | GET /api/event/event-info |
None |
| Gift code redeem | POST coupon API |
None (nickname only) |
MIT