store: Discord Webhook Notifications in claude-scheduled runner.sh

This commit is contained in:
Cal Corum 2026-03-02 14:03:56 -06:00
parent 2885437c0d
commit a055cdb233

View File

@ -0,0 +1,32 @@
---
id: c4be970f-3516-4cce-8d0e-96941811a5e5
type: configuration
title: "Discord Webhook Notifications in claude-scheduled runner.sh"
tags: [claude-scheduled, discord, webhook, runner, notification, configuration]
importance: 0.7
confidence: 0.8
created: "2026-03-02T20:03:56.929917+00:00"
updated: "2026-03-02T20:03:56.929917+00:00"
---
# Discord Webhook Notifications in claude-scheduled runner.sh
## Summary
Added opt-in Discord notification to `~/.config/claude-scheduled/runner.sh`. Tasks can configure Discord notifications by setting `notify_webhook` in their `settings.json`.
## How It Works
- After task completion, runner.sh checks for `notify_webhook` in settings.json
- Uses Python to extract `.result` and `.total_cost_usd` from claude JSON output
- Builds a Discord embed payload and POSTs via curl
- Webhook URL for Homelab Alerts: `https://discord.com/api/webhooks/1404105821549498398/...`
## Usage
In a task's `settings.json`, add:
```json
{
"notify_webhook": "https://discord.com/api/webhooks/..."
}
```
## Example
Backlog-triage task now sends triage reports to Discord automatically after each run.