Add ping command

This commit is contained in:
Em (Ethan) Ruszanowski 2023-03-08 13:35:07 -05:00
parent 46608062f4
commit b68bac5e10
No known key found for this signature in database
GPG key ID: B4B3EFE1F35DF9D6

8
src/commands/ping.rs Normal file
View file

@ -0,0 +1,8 @@
use crate::{Context, Error};
/// Replies with a pong
#[poise::command(slash_command, prefix_command)]
pub async fn ping(ctx: Context<'_>) -> Result<(), Error> {
ctx.say("Pong! 🏓").await?;
Ok(())
}