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