From b68bac5e10a3e1c8123b0fdb2a2dd39bf768a608 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Wed, 8 Mar 2023 13:35:07 -0500 Subject: [PATCH] Add ping command --- src/commands/ping.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/commands/ping.rs diff --git a/src/commands/ping.rs b/src/commands/ping.rs new file mode 100644 index 0000000..f25f1d0 --- /dev/null +++ b/src/commands/ping.rs @@ -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(()) +}