Hook#buildwithclaude
0
Discord error notifications
Uzun süren operasyonlar ve önemli etkinlikler için Discord bildirimleri gönderin
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Uzun süren operasyonlar ve önemli etkinlikler için Discord bildirimleri gönderin
Kaynak: davepoon/claude-code-subagents-collection · MIT
curl -sL https://www.antrophiclove.com/api/kaynak/discord-error-notifications/rawBu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json
Send Discord notifications for long-running operations and important events
PostToolUseBashDISCORD_WEBHOOK_URL#!/bin/bash
if [[ -z "$DISCORD_WEBHOOK_URL" ]]; then
exit 0
fi
# Check if the tool result indicates an error
tool_result=$(jq -r '.tool_result // empty')
if echo "$tool_result" | grep -qi "error\|failed\|exception"; then
command=$(jq -r '.tool_input.command // "unknown"' | head -c 100)
payload=$(jq -n --arg msg "Command failed: $command" '{"content": $msg}')
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d "$payload" >/dev/null 2>&1
fi