Add more stuff
Some checks failed
Rust / check (push) Failing after 41s

This commit is contained in:
August 2026-05-26 23:07:34 -04:00
parent a67facbfad
commit 07f7cddf71
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw

View File

@ -3,13 +3,18 @@ const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078;
use rand::{self, seq::IndexedRandom}; use rand::{self, seq::IndexedRandom};
const HATE: [&str; 6] = [ const HATE: [&str; 11] = [
"kys sloplord", "kys sloplord",
"you post slop stfu", "you post slop stfu",
"go generate some hoes", "go generate some hoes",
"can we kill this guy", "can we kill this guy",
"are you dense", "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)] #[allow(unused_imports)]
@ -47,18 +52,30 @@ pub async fn event_handler(
.await .await
.unwrap() .unwrap()
{ {
info!("Testing message with ID: {}", new_message.id);
// TODO: Find out why this is necessary // 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() if !real_message.attachments.is_empty()
|| !real_message.embeds.is_empty() || !real_message.embeds.is_empty()
|| real_message.content.contains("https://tenor.com/view") || real_message.content.contains("https://tenor.com/view")
{ {
let message = { let message = {
let mut rng = rand::rng(); let mut rng = rand::rng();
HATE.choose(&mut rng).unwrap().to_string() 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?;
} }
} }
} }