Fixed add xp to author of reacted message #218

This commit is contained in:
Sven Heidemann 2023-02-21 12:47:20 +01:00
parent 0ea1edff4d
commit 4e722d9c47

View File

@ -52,6 +52,9 @@ class BaseReactionHandler:
__name__, __name__,
f"{log_msg} to message {LogMessageHelper.get_log_string(message)}", 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: except Exception as e:
self._logger.error(__name__, f"Getting message for reaction logging failed", 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}") self._logger.info(__name__, f"{log_msg} to message {payload.message_id}")