mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 23:36:37 +02:00
18 lines
404 B
Rust
18 lines
404 B
Rust
mod commands;
|
|
|
|
use clap::Subcommand;
|
|
use conduit::Result;
|
|
use ruma::events::room::message::RoomMessageEventContent;
|
|
|
|
use self::commands::*;
|
|
|
|
#[derive(Debug, Subcommand)]
|
|
pub(super) enum CheckCommand {
|
|
AllUsers,
|
|
}
|
|
|
|
pub(super) async fn process(command: CheckCommand, body: Vec<&str>) -> Result<RoomMessageEventContent> {
|
|
Ok(match command {
|
|
CheckCommand::AllUsers => check_all_users(body).await?,
|
|
})
|
|
}
|