add user id for pings
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user