antrophiclove
← Kütüphaneye dön
Kurulum
curl -sL https://www.antrophiclove.com/api/kaynak/discord-notifications/raw

Bu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json

---
name: discord-notifications
description: Send Discord notifications when Claude Code finishes working
category: notifications
event: Stop
matcher: "*"
language: bash
version: 1.0.0
---

# discord-notifications

Send Discord notifications when Claude Code finishes working

## Event Configuration

- **Event Type**: `Stop`
- **Tool Matcher**: `*`
- **Category**: notifications

## Environment Variables

- `DISCORD_WEBHOOK_URL`

## Requirements

- DISCORD_WEBHOOK_URL environment variable set to your Discord webhook URL

### Script

```bash
#!/bin/bash
# Send Discord notification when Claude Code finishes

if [[ -z "$DISCORD_WEBHOOK_URL" ]]; then
  exit 0
fi

message="Claude Code has finished working on your request."
payload=$(jq -n --arg msg "$message" '{"content": $msg}')

curl -s -X POST "$DISCORD_WEBHOOK_URL" \
  -H "Content-Type: application/json" \
  -d "$payload" >/dev/null 2>&1
```