Skip to main content

Crate wabot_addon_chat_controller_cmd

Crate wabot_addon_chat_controller_cmd 

Source
Expand description

CLI (stdin/stdout) chat channel — port of wabot-ts addon/chat-controller/cmd/CmdChannel.ts.

Reads lines from stdin until EOF or exit. Each non-empty line becomes a ChannelMessage whose chat_connection.id is taken from .cmd-channel/id.json (created on first use). Replies print [<sender>]: <text> to stdout.

Designed for local testing; production deployments should use Telegram / Socket / WhatsApp channels.

Structs§

CmdChannel
CLI channel. Cheap to clone (Arc-internal); construct one per process and register as a singleton.

Constants§

CMD_CHANNEL_NAME