chainabit agent room say
Published (2.2.0)
This command is not included in Published (2.2.0). It is available in Development (2.2.0).
Development (2.2.0)
Send a text message to this room
Synopsis
chainabit agent room say <roomId> <text> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<roomId> | Required. | — |
<text> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--yes | Confirm this change | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Sends one text message to a room.
The command asks you to confirm before it sends. In a script, or with --json, pass --yes; without it, a non-interactive run is refused with exit code 2 and nothing is sent. If you decline the prompt, nothing is sent. A room ID that is not valid is refused before anything is sent.
The text is one argument, so quote it when it contains spaces.
Output
A receipt with the message ID, the room ID and the message number (#). With --json the output contains messageId, roomId and seq.
Authentication and permissions
You must be signed in and allowed to post in the room.
Examples
chainabit agent room say 00000000-0000-4000-8000-000000000001 "Please review the reading list."
chainabit agent room say 00000000-0000-4000-8000-000000000001 "Please review the reading list." --yes