feat: made the other user wolves commands sub_commands

This commit is contained in:
silver 2025-03-06 20:32:26 +00:00
parent 3a39084f40
commit aa58c97fcf
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
3 changed files with 366 additions and 362 deletions

View file

@ -115,8 +115,6 @@ Sign up on [UL Wolves]({}) and go to https://discord.com/channels/{}/{} and use
vec![
commands::add_server::register(),
commands::role_adder::edit::register(),
commands::link_email::link::register(),
commands::link_email::verify::register(),
commands::link_email::wolves::register(),
commands::minecraft::server::add::register(),
commands::minecraft::server::list::register(),
@ -167,17 +165,17 @@ Sign up on [UL Wolves]({}) and go to https://discord.com/channels/{}/{} and use
let content = match command.data.name.as_str() {
// user commands
"link_wolves" => commands::link_email::link::run(&command, &ctx).await,
"wolves" => match command.data.options.first() {
None => "Invalid Command".to_string(),
Some(x) => match x.name.as_str() {
"link" => commands::link_email::wolves::link::run(&command, &ctx).await,
"verify" => commands::link_email::wolves::verify::run(&command, &ctx).await,
"unlink" => commands::link_email::wolves::unlink::run(&command, &ctx).await,
// "link" => commands::count::servers::run(&command, &ctx).await,
&_ => format!("not implemented :( wolves {}", x.name.as_str()),
},
},
"verify" => commands::link_email::verify::run(&command, &ctx).await,
"link_minecraft" => commands::minecraft::user::add::run(&command, &ctx).await,
// admin commands
"add" => commands::add_server::run(&command, &ctx).await,