matrix: Add ping command
This commit is contained in:
parent
9fa148a939
commit
9144f5d8ed
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ async fn on_room_message(event: SyncMessageEvent<MessageEventContent>, room: Roo
|
||||||
let content = MessageEventContent::text_plain("Open sesame!");
|
let content = MessageEventContent::text_plain("Open sesame!");
|
||||||
room.send(content, None).await.unwrap();
|
room.send(content, None).await.unwrap();
|
||||||
}
|
}
|
||||||
|
if msg_body == "ping" {
|
||||||
|
let content = MessageEventContent::text_plain("Pong!");
|
||||||
|
room.send(content, None).await.unwrap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue