feat: add a command to list minecraft servers
This commit is contained in:
parent
2970549eb0
commit
c2a6407ef0
3 changed files with 88 additions and 2 deletions
|
@ -61,6 +61,7 @@ impl EventHandler for Handler {
|
|||
.create_application_command(|command| commands::link_email::link::register(command))
|
||||
.create_application_command(|command| commands::link_email::verify::register(command))
|
||||
.create_application_command(|command| commands::minecraft::server::add::register(command))
|
||||
.create_application_command(|command| commands::minecraft::server::list::register(command))
|
||||
.create_application_command(|command| commands::minecraft::user::add::register(command))
|
||||
})
|
||||
.await
|
||||
|
@ -85,6 +86,7 @@ impl EventHandler for Handler {
|
|||
// admin commands
|
||||
"add" => commands::add_server::run(&command, &ctx).await,
|
||||
"minecraft_add" => commands::minecraft::server::add::run(&command, &ctx).await,
|
||||
"minecraft_list" => commands::minecraft::server::list::run(&command, &ctx).await,
|
||||
_ => "not implemented :(".to_string(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue