diff --git a/build.rs b/build.rs index 289154b..c4d14fa 100644 --- a/build.rs +++ b/build.rs @@ -2,7 +2,6 @@ use anyhow::Error; use vergen::*; fn main() -> Result<(), Error> { - let build = BuildBuilder::all_build()?; let cargo = CargoBuilder::all_cargo()?; let rustc = RustcBuilder::all_rustc()?; diff --git a/src/definitions.rs b/src/definitions.rs index cb34545..6060332 100644 --- a/src/definitions.rs +++ b/src/definitions.rs @@ -62,7 +62,7 @@ pub async fn event_handler( .message(ctx.http.clone(), new_message.id) .await .unwrap(); - if ( !real_message.embeds.is_empty() + if (!real_message.embeds.is_empty() || real_message.content.contains("https://tenor.com/view")) & rand::rng().random_bool(0.25) { diff --git a/src/main.rs b/src/main.rs index 0e0e18e..8d9c9c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,6 @@ extern crate log; // Definitions mod definitions; -use crate::command::devel; use crate::definitions::event_handler; use crate::definitions::*; @@ -51,7 +50,12 @@ async fn main() { pretty_env_logger::init(); info!("Initialized logger successfully"); info!("Current version: {}", env!("CARGO_PKG_VERSION")); - info!("Commit info: {} on {}: {}", env!("GIT_COMMIT_ID_SHORT"), env!("GIT_COMMIT_DATE"), env!("GIT_COMMIT_MSG")); + info!( + "Commit info: {} on {}: {}", + env!("GIT_COMMIT_ID_SHORT"), + env!("GIT_COMMIT_DATE"), + env!("GIT_COMMIT_MSG") + ); match env::current_exe() { Ok(exe) => info!("Got current exe successfully: {}", exe.display()), Err(err) => error!("Failed to get exe: {}", err),