made ping command

This commit is contained in:
2025-01-29 17:57:11 +01:00
parent 160ff270bd
commit fcda580d61
4 changed files with 79 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
use crate::{Context, Error};
#[poise::command(slash_command, prefix_command)]
pub async fn ping(
ctx: Context<'_>,
#[description = "The text to echo back"] text: String,
) -> Result<(), Error>
{
ctx.reply(text).await?;
Ok(())
}