2026-04-12 13:11:23 +00:00
|
|
|
//! 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.
|
2026-03-28 08:26:50 +00:00
|
|
|
pub mod context;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Matrix message formatter — converts markdown to Matrix HTML.
|
2026-03-28 08:26:50 +00:00
|
|
|
pub mod format;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Conversation history — loads and saves per-room chat history.
|
2026-03-28 08:26:50 +00:00
|
|
|
pub mod history;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Mention detection — identifies messages that mention the bot user.
|
2026-03-28 08:26:50 +00:00
|
|
|
pub mod mentions;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Message handlers — processes incoming Matrix room messages.
|
2026-03-28 08:26:50 +00:00
|
|
|
pub mod messages;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Bot run loop — the main async task that drives the Matrix sync loop.
|
2026-03-28 08:26:50 +00:00
|
|
|
pub mod run;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Device verification — handles Matrix cross-signing and emoji verification flows.
|
2026-03-28 08:26:50 +00:00
|
|
|
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;
|