diff --git a/src/definitions.rs b/src/definitions.rs index 4b24937..cb34545 100644 --- a/src/definitions.rs +++ b/src/definitions.rs @@ -1,7 +1,7 @@ const SLOP_SCOUNDREL_SERVER_ID: u64 = 752667089155915846; const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078; -use rand::{self, Rng, seq::IndexedRandom}; +use rand::{self, seq::IndexedRandom, Rng}; const HATE: [&str; 11] = [ "kys sloplord", @@ -62,8 +62,7 @@ pub async fn event_handler( .message(ctx.http.clone(), new_message.id) .await .unwrap(); - if (!real_message.attachments.is_empty() - || !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) {