mild changes

This commit is contained in:
shibedrill 2024-04-27 21:44:46 -04:00
parent 552eaa6cb9
commit c8157c70ae

View File

@ -21,10 +21,13 @@ pub async fn meow(ctx: Context<'_>) -> Result<(), Error> {
"mrrghh", "mrrghh",
"mrowwwwwwwwwwww", "mrowwwwwwwwwwww",
"FUCK", "FUCK",
"IM GONNA MROWWWWW!!11!11!",
"meow meow bitchass",
"mrrghh???",
]; ];
let response = { let response = {
let mut rng = rand::thread_rng(); let mut rng = rand::thread_rng();
match rng.gen_bool(0.1) { match rng.gen_bool(0.05) {
true => "woof", true => "woof",
// Will never return None. The source is staticaly defined. // Will never return None. The source is staticaly defined.
// We know it will always have items in it. // We know it will always have items in it.
@ -42,11 +45,15 @@ pub async fn whack(
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 response = match &target == ctx.author() {
"<@{}> has been whacked. they must whack another user to become un-whacked", true => "You can't whack yourself. idiot.".into(),
target.id false => format!(
)) "{} was whacked by {}. they must whack another user to become unwhacked.",
.await?; target,
ctx.author()
),
};
ctx.say(response).await?;
info!("Executed command `whack` successfully"); info!("Executed command `whack` successfully");
Ok(()) Ok(())
} }