diff --git a/src/main.rs b/src/main.rs index 991ceb0acd4164265f93aeb0892fc71661ebee2a..4898db678298c7a071e2f4bc9b07a5e84bbacb27 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,7 @@ impl EventHandler for Handler { fn reaction_add(&self, ctx: Context, add_reaction: channel::Reaction) { match add_reaction.message(&ctx.http) { Ok(message) => { - if message.author.id.0 == config::BOT_ID { + if message.author.id.0 != config::BOT_ID || add_reaction.user_id == config::BOT_ID { return; } match message_type(&message) { @@ -106,7 +106,7 @@ impl EventHandler for Handler { fn reaction_remove(&self, ctx: Context, removed_reaction: channel::Reaction) { match removed_reaction.message(&ctx.http) { Ok(message) => { - if message.author.id.0 == config::BOT_ID { + if message.author.id.0 != config::BOT_ID || removed_reaction.user_id == config::BOT_ID { return; } match message_type(&message) {