add user id for pings

This commit is contained in:
2026-01-05 22:21:28 -05:00
parent 06441874be
commit 34ab774759
2 changed files with 49 additions and 15 deletions
+15 -3
View File
@@ -29,10 +29,13 @@ The entire implementation is a single Babashka script (`iamwaiting`) with these
Configuration is stored in `~/.iamwaiting/config.edn` with the following structure:
```clojure
{:webhook-url "https://discord.com/api/webhooks/..."}
{:webhook-url "https://discord.com/api/webhooks/..."
:user-id "123456789012345678"} ; Optional: Discord user ID for @mentions
```
Alternatively, the webhook URL can be set via the `IAMWAITING_WEBHOOK_URL` environment variable.
Alternatively, configuration can be set via environment variables:
- `IAMWAITING_WEBHOOK_URL` - Discord webhook URL (required)
- `IAMWAITING_USER_ID` - Discord user ID for @mentions (optional)
## Installation
@@ -114,14 +117,23 @@ Notifications include:
- ⏳ Waiting indicator
- 📁 Current working directory / project name
- 🕐 Timestamp (HH:mm:ss format)
- @mention (if user ID is configured and it's a permission prompt)
Example message:
Example message (normal prompt):
```
⏳ **Claude is waiting** in `ajet-industries`
📁 Path: `/home/user/repos/ajet-industries`
🕐 Time: 14:23:45
```
Example message (permission prompt with user ID configured):
```
<@123456789012345678> ⏳ **Claude is waiting** in `ajet-industries`
📁 Path: `/home/user/repos/ajet-industries`
🕐 Time: 14:23:45
📢 Type: `permission_prompt`
```
### Error Handling
- Missing configuration prompts user to run `./iamwaiting setup`