Add some comments

This commit is contained in:
Em (Ethan) Ruszanowski 2023-01-09 18:41:05 -05:00
parent 165a77f510
commit 57ec109290
No known key found for this signature in database
GPG key ID: C3E7A3C0B1491DFE

View file

@ -5,7 +5,7 @@ struct Data {}
type Error = Box<dyn std::error::Error + Send + Sync>; type Error = Box<dyn std::error::Error + Send + Sync>;
type Context<'a> = poise::Context<'a, Data, Error>; 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)] #[poise::command(slash_command, prefix_command)]
async fn slur( async fn slur(
ctx: Context<'_>, ctx: Context<'_>,
@ -19,7 +19,7 @@ async fn slur(
async fn main() { async fn main() {
let framework = poise::Framework::builder() let framework = poise::Framework::builder()
.options(poise::FrameworkOptions { .options(poise::FrameworkOptions {
commands: vec![slur()], commands: vec![slur()], // Intellij doesn't like this, but it's fine.
..Default::default() ..Default::default()
}) })
.token(std::env::var("DISCORD_TOKEN").expect("missing DISCORD_TOKEN")) .token(std::env::var("DISCORD_TOKEN").expect("missing DISCORD_TOKEN"))
@ -32,4 +32,4 @@ async fn main() {
}); });
framework.run().await.unwrap(); framework.run().await.unwrap();
} }