完成了基本命令部分,matrix登陆在测试中

This commit is contained in:
:NoBody: committed 2026-03-29 22:02:35 +08:00
1 parent bbbdd9eac5
commit ad69931573
6 files changed
+310 -29

No files matched your search

+3
View File
@@ -1,5 +1,6 @@
use std::{sync::OnceLock, time::Duration};
use serde::{Deserialize, de::DeserializeOwned};
use tokio::task::JoinHandle;
use anyhow::Result;
@@ -49,4 +50,6 @@ pub enum MessageEnum {
#[async_trait]
pub trait Bot {
async fn start(&self) -> Result<()>;
async fn join_rooms(&self) -> Result<()>;
async fn send_raw_message(&self, room_id: &str, message: &OutboundMessage) -> Result<String>;
}