Revise ai detection
All checks were successful
Rust / check (push) Successful in 50s

This commit is contained in:
August 2026-06-02 14:16:38 -04:00
parent 5ef3835e64
commit 63ef84277e
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw

View File

@ -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)
{