log more actions + tidy up things

This commit is contained in:
seth 2024-03-03 18:32:44 -05:00
parent 651f14d724
commit 915ef54dc3
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
14 changed files with 56 additions and 19 deletions

View file

@ -2,10 +2,12 @@ use crate::api::dadjoke;
use crate::Context;
use eyre::Result;
use log::trace;
/// It's a joke
#[poise::command(slash_command, prefix_command)]
pub async fn joke(ctx: Context<'_>) -> Result<()> {
trace!("Running joke command");
let joke = dadjoke::get_joke().await?;
ctx.reply(joke).await?;