summaryrefslogtreecommitdiff
path: root/07_sample_bot_structure/src/commands/meta.rs
blob: d58af102d54b0de214865517aef3f8898967fba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use serenity::prelude::*;
use serenity::model::prelude::*;
use serenity::framework::standard::{
    CommandResult,
    macros::command,
};

#[command]
fn ping(ctx: &mut Context, msg: &Message) -> CommandResult {
    let _ = msg.channel_id.say(&ctx.http, "Pong!");

    Ok(())
}