updated bite command

This commit is contained in:
shibedrill 2024-04-26 00:01:18 -04:00
parent 130978fc84
commit 44cb475ae3

View File

@ -92,12 +92,11 @@ pub async fn bite(
ctx: Context<'_>, ctx: Context<'_>,
#[description = "The target user"] target: serenity::User, #[description = "The target user"] target: serenity::User,
) -> Result<(), Error> { ) -> Result<(), Error> {
ctx.say(format!( let message = match &target == ctx.author() {
"<@{}> has been bitten by <@{}>", true => format!("{} bit themselves (what a weirdo)", ctx.author()),
target.id, false => format!("{} was bitten by {}", target, ctx.author()),
ctx.author().id, };
)) ctx.say(message).await?;
.await?;
info!("Executed command `bite` successfully"); info!("Executed command `bite` successfully");
Ok(()) Ok(())
} }