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 6d0850ee60b5fdd948e5f7757e238cecc2a07e80
parent d2dc61ba0e1c4b952f40895d7c8a4c229166e67e
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 28 Feb 2026 06:24:36 +0000

refactor: default greeting

Diffstat:
Mvoice.ts | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/voice.ts b/voice.ts @@ -4,6 +4,8 @@ import prompt from "./prompt.ts"; import whitelist from "./whitelist.ts"; import log from "./log.ts"; +const DEFAULT_GREETING = "Hello"; + const HOLD_MUSIC_URL = "http://com.twilio.sounds.music.s3.amazonaws.com/MARKOVICHAMP-Borghestral.mp3"; @@ -83,7 +85,7 @@ export default async (req: Request, res: Response): Promise<void> => { if (!speechResult) { log("INFO", "No speech result received"); - const response = buildResponse(req, "Hello"); + const response = buildResponse(req, DEFAULT_GREETING); res.set("Content-Type", "text/xml");