summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-07 19:39:22 -0400
committerseth <[email protected]>2023-04-07 20:00:57 -0400
commit83f885ee8d762551a6c5d8ea5ab3719cde76464a (patch)
treeb81ee4ed2b6c935023b51be22de7591bf654c1c5 /src/main.rs
parent4ee540028b3bbc9671db597e761033865c7ed6d1 (diff)
add bottom encode/decode
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
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))
})