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
| #!/usr/bin/env python3 | |
| """ | |
| discord_notify.py — Send a message to a Discord channel via webhook. | |
| No third-party dependencies required (uses stdlib only). | |
| Usage | |
| ----- | |
| 1. Set your webhook URL in an environment variable: | |
| export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/..." |