mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-22 04:07:46 -05:00
Add some comments
This commit is contained in:
parent
165a77f510
commit
57ec109290
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ struct Data {}
|
|||
type Error = Box<dyn std::error::Error + Send + Sync>;
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue