Add bite command

This commit is contained in:
shibedrill 2024-04-25 14:30:14 -04:00
parent 4244a5ad18
commit f13400703e
2 changed files with 21 additions and 0 deletions

View File

@ -85,3 +85,23 @@ pub async fn eightball(ctx: Context<'_>) -> Result<(), Error> {
info!("Executed command `eightball` successfully"); info!("Executed command `eightball` successfully");
Ok(()) Ok(())
} }
/// BITE BITE BITE
#[poise::command(slash_command)]
pub async fn bite(
ctx: Context<'_>,
#[description = "The target user"] target: Option<serenity::User>,
) -> 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(())
}

View File

@ -92,6 +92,7 @@ async fn main() {
meow(), meow(),
penis(), penis(),
eightball(), eightball(),
bite(),
], ],
initialize_owners: true, initialize_owners: true,
..Default::default() ..Default::default()