remove reaction spammer
don’t even know who they were, but they left long ago
This commit is contained in:
parent
dac9a0c7ca
commit
50e0e28296
11
src/main.rs
11
src/main.rs
@ -24,17 +24,6 @@ impl EventHandler for Handler {
|
|||||||
eprintln!("Error during command execution: {e}");
|
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> {
|
async fn handle_message(ctx: Context, message: Message) -> Result<(), serenity::Error> {
|
||||||
|
Loading…
Reference in New Issue
Block a user