1.7 KiB
1.7 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| c4be970f-3516-4cce-8d0e-96941811a5e5 | configuration | Discord Webhook Notifications in claude-scheduled runner.sh |
|
0.7 | 0.8 | 2026-03-02T20:03:56.929917+00:00 | 2026-03-02T20:05:28.039204+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_webhookin settings.json - Uses Python to extract
.resultand.total_cost_usdfrom 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:
{
"notify_webhook": "https://discord.com/api/webhooks/..."
}
Example
Backlog-triage task now sends triage reports to Discord automatically after each run.