story-kit: merge 182_story_matrix_bot_conversation_context_and_multi_room

This commit is contained in:
Dave
2026-02-25 15:25:13 +00:00
parent 01ca1a20d7
commit 4b4d221d6c
4 changed files with 492 additions and 72 deletions

View File

@@ -11,6 +11,9 @@
//!
//! The bot is optional — if `bot.toml` is missing or `enabled = false`, the
//! server starts normally with no Matrix connection.
//!
//! Multi-room support: configure `room_ids = ["!room1:…", "!room2:…"]` in
//! `bot.toml`. Each room maintains its own independent conversation history.
mod bot;
mod config;
@@ -36,9 +39,9 @@ pub fn spawn_bot(project_root: &Path) {
};
crate::slog!(
"[matrix-bot] Starting Matrix bot → homeserver={} room={}",
"[matrix-bot] Starting Matrix bot → homeserver={} rooms={:?}",
config.homeserver,
config.room_id
config.effective_room_ids()
);
let root = project_root.to_path_buf();