silly goober bot
1use color_eyre::eyre::Result;
2
3use crate::types::Context;
4
5/// Replies with "Pong!" or does it?
6#[poise::command(slash_command, guild_only)]
7pub async fn ping(ctx: Context<'_>) -> Result<()> {
8 let ping = humantime::format_duration(ctx.ping().await);
9 ctx.say(format!("Pong! `{ping}`")).await?;
10 Ok(())
11}