#!/usr/bin/env bash # Post a message to the Discord webhook stored in ./.discord_webhook (not committed). # tests/notify.sh "text" (max 2000 chars per Discord message) cd "$(dirname "$0")/.." python3 -c 'import json,sys; print(json.dumps({"username": "Claude (lfm3-vllm-port)", "content": sys.argv[1][:2000]}))' "$1" | curl -sS -o /dev/null -w '%{http_code}\n' -H 'Content-Type: application/json' -d @- "$(cat .discord_webhook)"