修改了bot代码,基本实现了签到功能,还需实现定时统计
This commit is contained in:
1 parent
f86ed8c286
commit
d358ed3ddc
15 files changed
+334
-25
No files matched your search
+2
-1
@@ -22,7 +22,7 @@ pub struct OutboundMessage {
|
||||
pub reply_to_event_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub struct InboundMessage {
|
||||
pub event_id: String,
|
||||
pub channel_id: String,
|
||||
@@ -42,6 +42,7 @@ pub trait AttendanceHandler {
|
||||
async fn handle_commands(&self) -> Result<JoinHandle<()>>;
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub enum MessageEnum {
|
||||
MatrixMessage(InboundMessage),
|
||||
TelegramMessage(InboundMessage),
|
||||
|
||||
Reference in new issue
Block a user