Commit 4f8fa0

2026-02-08 06:11:41 Thai Pangsakulyanont: -/-
discord/SKILL.md ..
@@ 3,12 3,21 @@
description: Use this skill to send a message over Discord to the operator
---
- The webhook URL is in `~/.config/discord-agent/webhook-url.txt`
+ To send a message over Discord to the user, there is a script at `~/.local/bin/discord-curl` that can be invoked to send a Discord message via a webhook.
+
+ The script is essentially implemented this way:
+
+ ```sh
+ #!/bin/bash -e
+ curl -X POST "$@" <webhook_url>
+ ```
+
+ Here are some examples:
```sh
# Send a message
- curl -X POST -F 'content=hello' $(cat ~/.config/discord-agent/webhook-url.txt)
+ ~/.local/bin/discord-curl -F 'content=hello'
# Send a message with file
- curl -X POST -F 'content=hello' -F 'files[0]=@/etc/os-release' $(cat ~/.config/discord-agent/webhook-url.txt)
+ ~/.local/bin/discord-curl -F 'content=hello' -F 'files[0]=@/etc/os-release'
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9