This commit is contained in:
parent
5ef3835e64
commit
63ef84277e
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user