Merge pull request #7 from ethanrusz/session-handling

Add ping command
This commit is contained in:
Em (Ethan) Ruszanowski 2023-03-08 13:36:08 -05:00 committed by GitHub
commit d788e77012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(())
}