fmt: reorganisation
This commit is contained in:
parent
87e836619f
commit
d549627714
4 changed files with 215 additions and 208 deletions
|
@ -60,8 +60,8 @@ impl EventHandler for Handler {
|
|||
.create_application_command(|command| commands::add_server::register(command))
|
||||
.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::add_minecraft::server::register(command))
|
||||
.create_application_command(|command| commands::add_minecraft::user::register(command))
|
||||
.create_application_command(|command| commands::minecraft::server::add::register(command))
|
||||
.create_application_command(|command| commands::minecraft::user::add::register(command))
|
||||
})
|
||||
.await
|
||||
{
|
||||
|
@ -81,10 +81,10 @@ impl EventHandler for Handler {
|
|||
// user commands
|
||||
"link_wolves" => commands::link_email::link::run(&command, &ctx).await,
|
||||
"verify" => commands::link_email::verify::run(&command, &ctx).await,
|
||||
"link_minecraft" => commands::add_minecraft::user::run(&command, &ctx).await,
|
||||
"link_minecraft" => commands::minecraft::user::add::run(&command, &ctx).await,
|
||||
// admin commands
|
||||
"add" => commands::add_server::run(&command, &ctx).await,
|
||||
"add_minecraft" => commands::add_minecraft::server::run(&command, &ctx).await,
|
||||
"add_minecraft" => commands::minecraft::server::add::run(&command, &ctx).await,
|
||||
_ => "not implemented :(".to_string(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue