mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-21 19:57:46 -05:00
Add ping command
This commit is contained in:
parent
46608062f4
commit
b68bac5e10
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