Files
huskies/server/src/chat/transport/matrix/bot/mod.rs
T

23 lines
946 B
Rust
Raw Normal View History

//! Matrix bot — sub-modules for the Matrix chat bot implementation.
2026-04-29 10:41:32 +00:00
/// Bot context — shared state passed to Matrix bot command handlers.
pub mod context;
2026-04-29 10:41:32 +00:00
/// Matrix message formatter — converts markdown to Matrix HTML.
pub mod format;
2026-04-29 10:41:32 +00:00
/// Conversation history — loads and saves per-room chat history.
pub mod history;
2026-04-29 10:41:32 +00:00
/// Mention detection — identifies messages that mention the bot user.
pub mod mentions;
2026-04-29 10:41:32 +00:00
/// Message handlers — processes incoming Matrix room messages.
pub mod messages;
2026-04-29 10:41:32 +00:00
/// Bot run loop — the main async task that drives the Matrix sync loop.
pub mod run;
2026-04-29 10:41:32 +00:00
/// Device verification — handles Matrix cross-signing and emoji verification flows.
pub mod verification;
// Re-export all public types so existing import paths continue to work.
pub use format::markdown_to_html;
pub use history::{
ConversationEntry, ConversationHistory, ConversationRole, RoomConversation, save_history,
};
pub use run::run_bot;