20 lines
549 B
Markdown
20 lines
549 B
Markdown
---
|
|
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==$(get-secret.ts --id post-message-token) \
|
|
msgtype=text \
|
|
'text[content]=TEXT_MESSAGE'
|
|
```
|
|
|
|
- `TEXT_MESSAGE` is the message to be sent.
|