You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
374 B
Rust
15 lines
374 B
Rust
use serenity::client::Context;
|
|
use serenity::framework::standard::macros::command;
|
|
use serenity::framework::standard::CommandResult;
|
|
use serenity::model::channel::Message;
|
|
|
|
#[command]
|
|
#[description("Simple ping test command")]
|
|
#[usage("")]
|
|
#[bucket("general")]
|
|
async fn ping(ctx: &Context, msg: &Message) -> CommandResult {
|
|
msg.reply(ctx, "Pong!").await?;
|
|
|
|
Ok(())
|
|
}
|