event handler, claude bridge, frontmatter parser, rate limiter, full message loop

This commit is contained in:
Damocles 2026-04-29 22:03:03 +02:00
parent 1cc02e6f36
commit 4c17146b6f
2 changed files with 297 additions and 14 deletions

View file

@ -53,9 +53,13 @@ async fn main() -> anyhow::Result<()> {
client.restore_session(session.user_session).await?;
// need at least one sync so the client knows about joined rooms
client.sync_once(matrix_sdk::config::SyncSettings::default()).await?;
client
.sync_once(matrix_sdk::config::SyncSettings::default())
.await?;
let room = client.get_room(&room_id).context("room not found - has the bot joined it?")?;
let room = client
.get_room(&room_id)
.context("room not found - has the bot joined it?")?;
let content = RoomMessageEventContent::text_plain(&message);
room.send(content).await?;