From 57ec1092903953d117c2d1b8b2432f69631afd27 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Mon, 9 Jan 2023 18:41:05 -0500 Subject: [PATCH] Add some comments --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 803cb9c..18e2d27 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ struct Data {} type Error = Box; type Context<'a> = poise::Context<'a, Data, Error>; -// Basically a ping command +// Basically a ping command. Should be moved to a mod. #[poise::command(slash_command, prefix_command)] async fn slur( ctx: Context<'_>, @@ -19,7 +19,7 @@ async fn slur( async fn main() { let framework = poise::Framework::builder() .options(poise::FrameworkOptions { - commands: vec![slur()], + commands: vec![slur()], // Intellij doesn't like this, but it's fine. ..Default::default() }) .token(std::env::var("DISCORD_TOKEN").expect("missing DISCORD_TOKEN")) @@ -32,4 +32,4 @@ async fn main() { }); framework.run().await.unwrap(); -} \ No newline at end of file +}