mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-21 19:57:46 -05:00
commit
d788e77012
1 changed files with 8 additions and 0 deletions
8
src/commands/ping.rs
Normal file
8
src/commands/ping.rs
Normal 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(())
|
||||
}
|
Loading…
Reference in a new issue