Created
October 24, 2025 14:37
-
-
Save amondnet/0acdd010cca00a7f0aa18904dee8602c to your computer and use it in GitHub Desktop.
Slack Notify + Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| WEBHOOK_URL="https://hooks.slack.com/services/YOUR/WEBHOOK/URL" | |
| curl -X POST -H 'Content-type: application/json' \ | |
| --data '{ | |
| "text": "⚠️ Claude Code needs attention!", | |
| "blocks": [ | |
| { | |
| "type": "section", | |
| "text": { | |
| "type": "mrkdwn", | |
| "text": "⚠️ *Claude Code* needs your attention!\n_Check your terminal_" | |
| } | |
| } | |
| ] | |
| }' \ | |
| "$WEBHOOK_URL" > /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment