twilio-opencode

A lightweight express server to handle Twilio voice and messaging webhooks for prompting Opencode.
git clone https://unitehenry.com/git/twilio-opencode.git
Log | Files | Refs | README | LICENSE

version.sh (226B)


      1 #!/usr/bin/env bash
      2 
      3 if ! command -v node &> /dev/null; then
      4   echo "node not installed"
      5   exit 1
      6 fi
      7 
      8 NODE_VERSION=$(node --version)
      9 
     10 if [[ $NODE_VERSION == "v22."* ]]; then
     11   exit 0
     12 else
     13   echo "node 22 required"
     14   exit 1
     15 fi