From 0d0e68fec058b7a8b8e9a4768a183ec08ffad770 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 7 Apr 2023 22:59:35 -0400 Subject: add bottom subcommands --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e5b9bb9..fac587a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,8 +56,7 @@ impl EventHandler for Handler { println!("Received command interaction: {:#?}", command); let content = match command.data.name.as_str() { "ask" => commands::ask::run(&command.data.options).await, - "bottom_decode" => commands::bottom_decode::run(&command.data.options).await, - "bottom_encode" => commands::bottom_encode::run(&command.data.options).await, + "bottom" => commands::bottom::run(&command.data.options).await, "copypasta" => { commands::copypasta::run(&command.data.options, command.channel_id, &ctx.http) .await @@ -88,8 +87,7 @@ impl EventHandler for Handler { let commands = GuildId::set_application_commands(&guild_id, &ctx.http, |commands| { commands .create_application_command(|command| commands::ask::register(command)) - .create_application_command(|command| commands::bottom_decode::register(command)) - .create_application_command(|command| commands::bottom_encode::register(command)) + .create_application_command(|command| commands::bottom::register(command)) .create_application_command(|command| commands::copypasta::register(command)) .create_application_command(|command| commands::random_lore::register(command)) .create_application_command(|command| commands::random_teawie::register(command)) -- cgit v1.2.3