Rustbot/src/commands/ping.rs

11 lines
206 B
Rust
Raw Normal View History

2023-12-04 00:35:42 -05:00
use crate::Error;
/// Check if the bot is alive
#[poise::command(slash_command)]
pub async fn ping(
ctx: poise::Context<'_, (), Error>,
) -> Result<(), Error> {
ctx.reply("Powong!").await?;
Ok(())
}