2024-04-29 13:56:04 -07:00
|
|
|
use ruma::events::room::message::RoomMessageEventContent;
|
|
|
|
|
|
|
|
|
|
use crate::Result;
|
|
|
|
|
|
|
|
|
|
#[cfg_attr(test, derive(Debug))]
|
|
|
|
|
#[derive(clap::Subcommand)]
|
2024-06-16 22:26:52 +00:00
|
|
|
pub(super) enum TesterCommands {
|
2024-04-29 13:56:04 -07:00
|
|
|
Tester,
|
|
|
|
|
}
|
2024-06-16 22:26:52 +00:00
|
|
|
pub(super) async fn process(command: TesterCommands, _body: Vec<&str>) -> Result<RoomMessageEventContent> {
|
2024-04-29 13:56:04 -07:00
|
|
|
Ok(match command {
|
2024-05-09 15:59:08 -07:00
|
|
|
TesterCommands::Tester => RoomMessageEventContent::notice_plain(String::from("completed")),
|
2024-04-29 13:56:04 -07:00
|
|
|
})
|
|
|
|
|
}
|