feat(app): answer registered chat channels in chat
- chatChannels[].answer: wakeWord (default) or everything. Chat uses call.chatWakeWords (else the voice wake words) with the shared designated-people switches. - The brain's answer (reply via chat, not spoken) is posted as a Discord reply to the message, pinging nobody; failed or empty answers post nothing. Bots, channels with sending off and stops are not answered. - Chat runs beside the voice conversation and never takes its turn. - Core: send_chat_reply, chat_answer and the ReplyText event; the worker client's reply takes via. - Specs (conversation, discord core) and the roadmap updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,7 +67,7 @@ strings (numbers would lose precision).
|
||||
| `voice.joinNotice` | "자비스가 이 음성 채널에 들어왔습니다. 이 채널의 대화는 자비스가 받아 적습니다." | Posted in the voice channel's chat on every join. Must not be empty. |
|
||||
| `voice.wakeWords` | `["자비스"]` | Sent to the worker as STT `hotwords`, and the voice wake words of call detection. |
|
||||
| `voice.stt` | `{}` | Other worker STT settings (`partials`, `end_silence_ms`, `final_beam`, `language`, ...); the worker validates them. |
|
||||
| `chatChannels` | `[]` | `{id, name, description, read (true), send (true), edit (true), react (true), delete (false), pin (false)}` per channel. |
|
||||
| `chatChannels` | `[]` | `{id, name, description, read (true), send (true), edit (true), react (true), delete (false), pin (false), answer ("wakeWord")}` per channel; `answer` is in `conversation.spec.md`. |
|
||||
| `voiceWorker.python` | `python3` (`python.exe` on Windows) | Python of the worker venv. |
|
||||
| `voiceWorker.cwd` | the repo's `src/` (development builds) | Folder holding the `voice_worker` package. |
|
||||
| `voiceWorker.args` | `[]` | Extra worker arguments, e.g. `["--melo-python", "<MeloTTS venv python>"]`. |
|
||||
@@ -188,6 +188,9 @@ registered until it is removed (M5 setup).
|
||||
- **Send**: `send_chat(channel_id, text)` sends to a registered channel with sending on, split at
|
||||
Discord's 2,000-character limit at the last newline or space (never inside a character), and returns
|
||||
the message ids.
|
||||
- **Answer** (M4): `send_chat_reply(channel_id, message_id, text)` sends like Send, with the first
|
||||
part as a Discord reply to the message; nobody is pinged, not even its author. `chat_answer(id, user,
|
||||
text)` asks the brain for a chat answer (`reply` with `via: "chat"`); its text comes as `ReplyText`.
|
||||
- A channel that is not registered, or has the needed switch off, is refused with an access error.
|
||||
- **Chat tool actions** (M3, `chat_channels.spec.md`): when the worker link is ready and after login,
|
||||
the core sends `chat_channels` (every registered channel with its switches, and the bot's user ID).
|
||||
|
||||
Reference in New Issue
Block a user