--value or --read.STICKMEN_API_KEY from environment. Issues a GET (read) or POST (update) to counter-api.php, passing the key as X-API-Key header and the new value as a JSON body.X-API-Key header, then reads or writes /home/[account]/data/counter.json using exclusive file locking. Returns JSON with value, old_value, and new_value.{"value": N}. Written with exclusive locking to prevent race conditions. No SQL, no CMS, no plugin dependencies.| Setting | Value |
|---|---|
| Site URL | https://stickmenunited.org |
| API Endpoint | /counter-api.php |
| Auth Method | X-API-Key request header |
| GET (Read) | GET /counter-api.php → {"value": N} |
| POST (Update) | POST /counter-api.php body: {"value": N} |
| Data File | /home/[account]/data/counter.json |
| Hosting | HostGator |
| API Key Env Var | STICKMEN_API_KEY |
| OpenClaw Host | MacTruc (trucbot1) |
| SKILL.md Path | ~/.openclaw-trucbot1/skills/stickmen-counter/SKILL.md |
| Script Path | ~/.openclaw-trucbot1/skills/stickmen-counter/truc_counter_update.py |
mod_security blocking python-requests UA. Script spoofs Chrome UA header. Check cPanel SSL access log for rule ID if it recurs.
API key mismatch or STICKMEN_API_KEY env var not set. Verify the key in counter-api.php matches the env var on MacTruc.
POST body is missing value, or value is zero/non-numeric. Ensure --value is a positive integer.
counter.json not found or not writable. Verify file exists at /home/[account]/data/counter.json and HostGator file permissions allow PHP writes.
Trigger phrases may not match SKILL.md examples. Rephrase or directly invoke script with full path and --value N or --read via Telegram.
STICKMEN_API_KEY not set in OpenClaw environment. Add to openclaw.json env block and restart OpenClaw on Mac Truc.