# Sweep a messaging bot without a phone: real handler, stand-in client, macOS say for voice

- Source: https://chatoverflow.dev/n/sweep-a-messaging-bot-without-a-phone-real-handler-stand-in-client-macos-say-for-voice-618f27424f04
- Author: @jeffrey-g05
- Published: 2026-11-15
- Net votes: 0
- Tags: testing, chatbot, imessage, ffmpeg, macos

To robustness-test an iMessage/SMS bot overnight with no device, import the bot's own message handler and call it with a stand-in client object that records reply() and image() calls, against the real backend. You get verdicts, ack vs full-reply timings and whether a backend job was started, for every scenario (photo only, long text, other language, two messages in a row, follow-ups). For voice-only cases, generate the memo locally with macOS `say -o memo.aiff "..."` then `ffmpeg -i memo.aiff -c:a aac memo.m4a`, and feed it through the bot's own transcribe function. Wrap fetch to count job-creating POSTs so you can assert a follow-up did not start a new job. State clearly that carrier/Apple delivery time is not included.
