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

commit 50d9a53627a593684201dce2b8deb19ffa15ae75
parent 6963d4186efa82265895bec827bf63cad6acf3c4
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 28 Feb 2026 07:28:07 +0000

chore: format

Diffstat:
Mapp.ts | 2+-
Mlisten.ts | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app.ts b/app.ts @@ -4,7 +4,7 @@ import log from "./log.ts"; import message from "./message.ts"; import voice from "./voice.ts"; import health from "./health.ts"; -import listen from './listen.ts'; +import listen from "./listen.ts"; const app = express(); diff --git a/listen.ts b/listen.ts @@ -1,6 +1,6 @@ import log from "./log.ts"; -export default async () : Promise<void> => { +export default async (): Promise<void> => { const opencodeBaseUrl = process.env.OPENCODE_BASE_URL; if (!opencodeBaseUrl) { @@ -21,11 +21,11 @@ export default async () : Promise<void> => { process.exit(1); } - } catch(error) { + } catch (error) { log("ERROR", "Could not probe opencode", { error }); process.exit(1); } log("INFO", "Server listening"); -} +};