From 50e0e2829660628ba677b548486ecca1e123e2b0 Mon Sep 17 00:00:00 2001 From: kageru Date: Fri, 11 Oct 2024 10:22:51 +0200 Subject: [PATCH] remove reaction spammer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit don’t even know who they were, but they left long ago --- src/main.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main.rs b/src/main.rs index c7dbe92..8c9d03c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,17 +24,6 @@ impl EventHandler for Handler { eprintln!("Error during command execution: {e}"); } } - - async fn reaction_add(&self, ctx: Context, reaction: Reaction) { - if reaction.channel_id == *MEME_CHANNEL - // you know who you are - && reaction.user_id == Some(UserId::new(921332064056389663)) - { - if let Err(e) = reaction.delete(&ctx).await { - eprintln!("Could not delete reaction spam: {e}"); - } - } - } } async fn handle_message(ctx: Context, message: Message) -> Result<(), serenity::Error> {