应该可以跑了,还没完全测试

This commit is contained in:
:NoBody: committed 2026-04-09 21:37:41 +08:00
1 parent 7096384161
commit 9dbd544b47
11 files changed
+263 -76

No files matched your search

+9 -1
View File
@@ -132,6 +132,8 @@ async fn start_bot_command_processor(
bot.send_raw_message(&outbound.channel_id, &outbound)
.await?;
}
"test_report" => {}
_ => {
return Err(anyhow!("unknown command: {}", command));
}
@@ -219,7 +221,7 @@ impl AttendanceHandler for CommandHandler {
mod tests {
use super::start_bot_command_processor;
use crate::bot::define::{Bot, InboundMessage, OutboundMessage};
use anyhow::Result;
use anyhow::{Ok, Result};
use async_trait::async_trait;
use std::sync::Mutex;
@@ -240,6 +242,12 @@ mod tests {
Ok(())
}
async fn get_users_who_unchecked_for_long_time(
&self,
) -> Result<Vec<(String, Option<usize>)>> {
Ok(vec![("@user1:example.org".to_string(), Some(100))])
}
async fn join_rooms(&self) -> Result<()> {
Ok(())
}