From 4e722d9c4751d7070a6a840f577fc3fd37894ba4 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 21 Feb 2023 12:47:20 +0100 Subject: [PATCH] Fixed add xp to author of reacted message #218 --- kdb-bot/src/modules/base/helper/base_reaction_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kdb-bot/src/modules/base/helper/base_reaction_handler.py b/kdb-bot/src/modules/base/helper/base_reaction_handler.py index 666f7c8a..8fd2fd28 100644 --- a/kdb-bot/src/modules/base/helper/base_reaction_handler.py +++ b/kdb-bot/src/modules/base/helper/base_reaction_handler.py @@ -52,6 +52,9 @@ class BaseReactionHandler: __name__, f"{log_msg} to message {LogMessageHelper.get_log_string(message)}", ) + if member == message.author: + self._logger.debug(__name__, f"Skipping reaction handling") + return except Exception as e: self._logger.error(__name__, f"Getting message for reaction logging failed", e) self._logger.info(__name__, f"{log_msg} to message {payload.message_id}")