- MCP Server with audio fallback, sample management - Song generator with bus routing - Reference listener and audio resampler - Vector-based sample search - Master chain with limiter and calibration - Fix: Audio fallback now works without M4L - Fix: Full song detection in sample loader Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
716 B
Bash
29 lines
716 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
LOCAL_ENV_FILE="${LOCAL_ENV_FILE:-$PROJECT_ROOT/automation/wsl.local.env}"
|
|
|
|
if [[ -f "$LOCAL_ENV_FILE" ]]; then
|
|
# shellcheck disable=SC1090
|
|
source "$LOCAL_ENV_FILE"
|
|
fi
|
|
|
|
MESSAGE="${1:-}"
|
|
if [[ -z "$MESSAGE" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-}"
|
|
CHAT_ID="${TELEGRAM_CHAT_ID:-}"
|
|
|
|
if [[ -z "$BOT_TOKEN" || -z "$CHAT_ID" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
curl -fsS -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
|
|
--data-urlencode "chat_id=${CHAT_ID}" \
|
|
--data-urlencode "text=${MESSAGE}" \
|
|
--data "disable_web_page_preview=true" >/dev/null
|