forked from Skynet/discord-bot
feat: import and use the commands
This commit is contained in:
parent
439d49db43
commit
bda3fbe2ad
1 changed files with 6 additions and 0 deletions
|
@ -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::list::register(command))
|
||||||
.create_application_command(|command| commands::minecraft::server::delete::register(command))
|
.create_application_command(|command| commands::minecraft::server::delete::register(command))
|
||||||
.create_application_command(|command| commands::minecraft::user::add::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
|
.await
|
||||||
{
|
{
|
||||||
|
@ -89,6 +92,9 @@ impl EventHandler for Handler {
|
||||||
"minecraft_add" => commands::minecraft::server::add::run(&command, &ctx).await,
|
"minecraft_add" => commands::minecraft::server::add::run(&command, &ctx).await,
|
||||||
"minecraft_list" => commands::minecraft::server::list::run(&command, &ctx).await,
|
"minecraft_list" => commands::minecraft::server::list::run(&command, &ctx).await,
|
||||||
"minecraft_delete" => commands::minecraft::server::delete::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(),
|
_ => "not implemented :(".to_string(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue