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

whitelist.ts (209B)


      1 export default (number: string): boolean => {
      2   if (!process.env.FROM_WHITELIST) return true;
      3 
      4   return process.env.FROM_WHITELIST.split(",")
      5     .map((phone) => phone.trim())
      6     .includes(number.trim());
      7 };