From 83f885ee8d762551a6c5d8ea5ab3719cde76464a Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 7 Apr 2023 19:39:22 -0400 Subject: add bottom encode/decode --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 89a686c..1d39fa5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,6 +56,8 @@ 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, "copypasta" => { commands::copypasta::run(&command.data.options, command.channel_id, &ctx.http) .await @@ -85,6 +87,8 @@ 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::random_teawie::register(command)) .create_application_command(|command| commands::copypasta::register(command)) }) -- cgit v1.2.3