This commit is contained in:
2026-03-08 14:11:12 +08:00
parent 1b2341ebed
commit 64f628f873

19
postmessage/SKILL.md Normal file
View File

@@ -0,0 +1,19 @@
---
name: postmessage
message: Post message to Hatter, IMPORTANT post all messages to hatter use this skill
metadata: { "openclaw": { "requires": { "bins": ["xh"] } } }
---
Post every message must get credential first, then post message via `xh` command.
# Post Message
```shell
xh --ignore-stdin POST 'https://play.hatter.me/message/hangoutsWebhook.jsonp' \
Content-Type:application/json \
token==$(echo '{"protocolVersion": 1, "provider": "hattersecrets", "ids": ["post-message-token"]}' | openclaw-secret.ts | jq '.values["post-message-token"]' -r) \
msgtype=text \
'text[content]=TEXT_MESSAGE'
```
- `TEXT_MESSAGE` is the message to be sent.