diff --git a/src/command/fun.rs b/src/command/fun.rs index 9997b86..47f5aa2 100644 --- a/src/command/fun.rs +++ b/src/command/fun.rs @@ -85,3 +85,23 @@ pub async fn eightball(ctx: Context<'_>) -> Result<(), Error> { info!("Executed command `eightball` successfully"); Ok(()) } + +/// BITE BITE BITE +#[poise::command(slash_command)] +pub async fn bite( + ctx: Context<'_>, + #[description = "The target user"] target: Option, +) -> Result<(), Error> { + if let Some(target_unwrapped) = target { + ctx.say(format!( + "<@{}> has been bitten by <@{}>", + target_unwrapped.id, + ctx.author().id, + )) + .await?; + info!("Executed command `bite` successfully"); + } else { + error!("Failed to execute command `bite`"); + } + Ok(()) +} diff --git a/src/main.rs b/src/main.rs index bdf5979..1937032 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,6 +92,7 @@ async fn main() { meow(), penis(), eightball(), + bite(), ], initialize_owners: true, ..Default::default()