mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-25 13:17:45 -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 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"))
|
||||||
|
|
Loading…
Reference in a new issue