#!/usr/bin/env bash # Build the always-on SkateSpots Community Cordn bot for the relay box. # Output: build/community-bot.cjs (not committed; deploy to /opt/skatespots-community). set -euo pipefail cd "$(dirname "$0")/.." mkdir -p build npx esbuild scripts/community-bot.ts \ --bundle \ --platform=node \ --format=cjs \ --target=node20 \ --alias:@=./src \ --outfile=build/community-bot.cjs \ --log-level=warning sha256sum build/community-bot.cjs