summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index 927e0e8..e5b9bb9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -62,7 +62,7 @@ impl EventHandler for Handler {
commands::copypasta::run(&command.data.options, command.channel_id, &ctx.http)
.await
}
- "random_lore" => commands::random_lore::run(&command.data.options).await,
+ "random_lore" => commands::random_lore::run(&command.data.options).await,
"random_teawie" => commands::random_teawie::run(&command.data.options).await,
_ => "not implemented :(".to_string(),
};
@@ -91,7 +91,7 @@ impl EventHandler for Handler {
.create_application_command(|command| commands::bottom_decode::register(command))
.create_application_command(|command| commands::bottom_encode::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_lore::register(command))
.create_application_command(|command| commands::random_teawie::register(command))
})
.await;
@@ -141,12 +141,12 @@ async fn ask(ctx: &Context, msg: &Message) -> CommandResult {
#[command]
async fn random_lore(ctx: &Context, msg: &Message) -> CommandResult {
- let resp = utils::get_random_lore().await;
- msg.channel_id
- .send_message(&ctx.http, |m| m.content(resp))
- .await?;
-
- Ok(())
+ let resp = utils::get_random_lore().await;
+ msg.channel_id
+ .send_message(&ctx.http, |m| m.content(resp))
+ .await?;
+
+ Ok(())
}
#[command]