Files
EpicNext-Cms/scripts/alert.sh
T
openhands b688760309
CI / check (push) Successful in 4m6s
CI / deploy (push) Successful in 19s
CI / publish-container (push) Successful in 1m15s
feat: add documentation, alerts, cron setup and update dashboard
2026-09-13 21:16:08 +02:00

12 lines
356 B
Bash
Executable File

#!/usr/bin/env bash
# Script to send alerts via Webhook
# Usage: ./alert.sh "Your message"
WEBHOOK_URL="https://discord.com/api/webhooks/your_webhook_id/your_webhook_token" # Replace with actual URL
if [ -z "$1" ]; then
echo "Usage: ./alert.sh 'Message'"
exit 1
fi
curl -H "Content-Type: application/json" -d "{\"content\": \"$1\"}" $WEBHOOK_URL