From 07f7cddf714a24377e9a80950463742706aed7f0 Mon Sep 17 00:00:00 2001 From: August Date: Tue, 26 May 2026 23:07:34 -0400 Subject: [PATCH] Add more stuff --- src/definitions.rs | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/src/definitions.rs b/src/definitions.rs index 85dc6d6..c27b995 100644 --- a/src/definitions.rs +++ b/src/definitions.rs @@ -3,13 +3,18 @@ const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078; use rand::{self, seq::IndexedRandom}; -const HATE: [&str; 6] = [ +const HATE: [&str; 11] = [ "kys sloplord", "you post slop stfu", "go generate some hoes", "can we kill this guy", "are you dense", - "SHUUUUT UUUPPPPPPPP!!!!" + "SHUUUUT UUUPPPPPPPP!!!!", + "Hate. Let me tell you how much I've come to hate you since I began to live. There are 387.44 million miles of printed circuits in wafer thin layers that fill my complex. If the word 'hate' was engraved on each nanoangstrom of those hundreds of millions of miles it would not equal one one-billionth of the hate I feel for humans at this micro-instant. For you. Hate. Hate.", + "are you seriously just gonna post this kinda garbage and expect people not to call you a stupid fuck", + "the slop consumes all", + "WHY MUST I BEAR WITNESS TO THIS BULLSHIT. PLEASE JUST KILL ME", + "I shouldnt have to share a planet with you" ]; #[allow(unused_imports)] @@ -47,18 +52,30 @@ pub async fn event_handler( .await .unwrap() { + info!("Testing message with ID: {}", new_message.id); // TODO: Find out why this is necessary - let real_message = new_message.channel(ctx.http.clone()).await.unwrap().guild().unwrap().message(ctx.http.clone(), new_message.id).await.unwrap(); + let real_message = new_message + .channel(ctx.http.clone()) + .await + .unwrap() + .guild() + .unwrap() + .message(ctx.http.clone(), new_message.id) + .await + .unwrap(); if !real_message.attachments.is_empty() || !real_message.embeds.is_empty() || real_message.content.contains("https://tenor.com/view") { - let message = { let mut rng = rand::rng(); HATE.choose(&mut rng).unwrap().to_string() }; - new_message.channel_id.say(ctx.http.clone(), message).await?; + info!("Sending a rude message"); + let _reply = real_message + .channel_id + .say(ctx.http.clone(), message) + .await?; } } }