sync: auto-sync from HOWARD-HOME at 2026-05-22 09:03:36
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-05-22 09:03:36
This commit is contained in:
@@ -706,11 +706,12 @@ echo "$ALERT_OUT"
|
||||
- Do NOT redo any Syncro writes
|
||||
- The Syncro work is complete; the missed alert is informational only
|
||||
|
||||
**Message format:** one line — `[SYNCRO] <Tech> <verb> #<number> (<customer>) — <summary> → <link>`
|
||||
**Message format:** one line — `[SYNCRO] <Tech> <verb> #<number> (<customer>) - <summary> -> <link>`
|
||||
|
||||
- `<Tech>`: `mike` → Mike, `howard` → Howard (matches `identity.json` user)
|
||||
- `<Tech>`: `mike` -> Mike, `howard` -> Howard (matches `identity.json` user)
|
||||
- Use ticket **number** (`#32164`) in the text; build the link from the numeric **id**
|
||||
- One alert per workflow — billing touches ticket + invoice, send one alert linked to the ticket
|
||||
- **ASCII only** — use `-` not `—` and `->` not `→`. Unicode characters corrupt in Windows Git Bash and cause Discord to reject the JSON body (400 invalid JSON).
|
||||
|
||||
**Links:**
|
||||
|
||||
@@ -724,20 +725,20 @@ echo "$ALERT_OUT"
|
||||
```bash
|
||||
# Ticket created
|
||||
bash "$CLAUDETOOLS_ROOT/.claude/scripts/post-bot-alert.sh" \
|
||||
"[SYNCRO] Howard created #32301 (Desert Auto Tech) — Server won't boot → https://computerguru.syncromsp.com/tickets/110736645"
|
||||
"[SYNCRO] Howard created #32301 (Desert Auto Tech) - Server won't boot -> https://computerguru.syncromsp.com/tickets/110736645"
|
||||
# Success output: [OK] post-bot-alert: posted to #bot-alerts (message_id=1507055781780918404)
|
||||
|
||||
# Billed + invoiced
|
||||
bash "$CLAUDETOOLS_ROOT/.claude/scripts/post-bot-alert.sh" \
|
||||
"[SYNCRO] Mike billed #32164 (Jerry Burger) — 1.0h remote, \$150.00 → https://computerguru.syncromsp.com/tickets/110169036"
|
||||
"[SYNCRO] Mike billed #32164 (Jerry Burger) - 1.0h remote, \$150.00 -> https://computerguru.syncromsp.com/tickets/110169036"
|
||||
|
||||
# Prepaid billing
|
||||
bash "$CLAUDETOOLS_ROOT/.claude/scripts/post-bot-alert.sh" \
|
||||
"[SYNCRO] Mike billed #32203 (Desert Auto Tech) — 1.5h onsite, applied 1.5 prepay hrs, \$0.00 → https://computerguru.syncromsp.com/tickets/109895882"
|
||||
"[SYNCRO] Mike billed #32203 (Desert Auto Tech) - 1.5h onsite, applied 1.5 prepay hrs, \$0.00 -> https://computerguru.syncromsp.com/tickets/109895882"
|
||||
|
||||
# Ticket status updated
|
||||
bash "$CLAUDETOOLS_ROOT/.claude/scripts/post-bot-alert.sh" \
|
||||
"[SYNCRO] Mike resolved #32271 (Peaceful Spirit Massage) — IKEv2 VPN setup complete → https://computerguru.syncromsp.com/tickets/110169036"
|
||||
"[SYNCRO] Mike resolved #32271 (Peaceful Spirit Massage) - IKEv2 VPN setup complete -> https://computerguru.syncromsp.com/tickets/110169036"
|
||||
```
|
||||
|
||||
The script uses `jq` to build the JSON payload, so quotes and `$` in the message are safe. The script has a 15-second curl timeout and soft-fails on token missing, network error, or non-200 Discord response.
|
||||
|
||||
Reference in New Issue
Block a user