updated bite command
This commit is contained in:
parent
130978fc84
commit
44cb475ae3
@ -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(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user