diff options
| author | seth <[email protected]> | 2023-04-07 22:59:35 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-07 23:13:40 -0400 |
| commit | 0d0e68fec058b7a8b8e9a4768a183ec08ffad770 (patch) | |
| tree | 6f78cde40cf569a360b7dcce285417e9072e69dc /src/main.rs | |
| parent | 065ac97194b7640ca350b4770b404d855bf98b17 (diff) | |
add bottom subcommands
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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)) |
