From bda3fbe2addbe83dbab2ccf29e0a1d7c35f892f0 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 31 Aug 2024 19:20:24 +0100 Subject: [PATCH] feat: import and use the commands --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index d1ebf2d..cbe8d5d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,6 +64,9 @@ impl EventHandler for Handler { .create_application_command(|command| commands::minecraft::server::list::register(command)) .create_application_command(|command| commands::minecraft::server::delete::register(command)) .create_application_command(|command| commands::minecraft::user::add::register(command)) + // for committee server, temp + .create_application_command(|command| commands::committee::link::register(command)) + .create_application_command(|command| commands::committee::verify::register(command)) }) .await { @@ -89,6 +92,9 @@ impl EventHandler for Handler { "minecraft_add" => commands::minecraft::server::add::run(&command, &ctx).await, "minecraft_list" => commands::minecraft::server::list::run(&command, &ctx).await, "minecraft_delete" => commands::minecraft::server::delete::run(&command, &ctx).await, + // for teh committee server, temporary + "link_committee" => commands::committee::link::run(&command, &ctx).await, + "verify_committee" => commands::committee::verify::run(&command, &ctx).await, _ => "not implemented :(".to_string(), };