matrix: Add ping command

This commit is contained in:
George Kaklamanos 2023-11-15 20:52:19 +02:00
parent 9fa148a939
commit 9144f5d8ed
No known key found for this signature in database
GPG key ID: C0CAB8A6BDC9399D

View file

@ -26,6 +26,10 @@ async fn on_room_message(event: SyncMessageEvent<MessageEventContent>, room: Roo
let content = MessageEventContent::text_plain("Open sesame!");
room.send(content, None).await.unwrap();
}
if msg_body == "ping" {
let content = MessageEventContent::text_plain("Pong!");
room.send(content, None).await.unwrap();
}
}
}