From 44cb475ae32915f1342b56ee199eb02bbe36ffeb Mon Sep 17 00:00:00 2001 From: shibedrill <53824200+shibedrill@users.noreply.github.com> Date: Fri, 26 Apr 2024 00:01:18 -0400 Subject: [PATCH] updated bite command --- src/command/fun.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/command/fun.rs b/src/command/fun.rs index fc83fe2..6a7ea9c 100644 --- a/src/command/fun.rs +++ b/src/command/fun.rs @@ -92,12 +92,11 @@ pub async fn bite( ctx: Context<'_>, #[description = "The target user"] target: serenity::User, ) -> Result<(), Error> { - ctx.say(format!( - "<@{}> has been bitten by <@{}>", - target.id, - ctx.author().id, - )) - .await?; + let message = match &target == ctx.author() { + true => format!("{} bit themselves (what a weirdo)", ctx.author()), + false => format!("{} was bitten by {}", target, ctx.author()), + }; + ctx.say(message).await?; info!("Executed command `bite` successfully"); Ok(()) }