This commit is contained in:
parent
accc834375
commit
5ef3835e64
@ -1,7 +1,7 @@
|
||||
const SLOP_SCOUNDREL_SERVER_ID: u64 = 752667089155915846;
|
||||
const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078;
|
||||
|
||||
use rand::{self, seq::IndexedRandom};
|
||||
use rand::{self, Rng, seq::IndexedRandom};
|
||||
|
||||
const HATE: [&str; 11] = [
|
||||
"kys sloplord",
|
||||
@ -62,9 +62,10 @@ pub async fn event_handler(
|
||||
.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.content.contains("https://tenor.com/view")
|
||||
|| real_message.content.contains("https://tenor.com/view"))
|
||||
& rand::rng().random_bool(0.25)
|
||||
{
|
||||
let message = {
|
||||
let mut rng = rand::rng();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user