12 lines
319 B
Rust
12 lines
319 B
Rust
use serenity::framework::standard::macros::command;
|
|
use serenity::framework::standard::CommandResult;
|
|
use serenity::model::channel::Message;
|
|
use serenity::prelude::Context;
|
|
|
|
#[command]
|
|
pub async fn ping(ctx: &Context, msg: &Message) -> CommandResult {
|
|
msg.channel_id.say(&ctx.http, "pong!").await?;
|
|
|
|
Ok(())
|
|
}
|