From a46fbcd9fcd578162f8c33e332bab69c4e0efe6c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 17 Nov 2022 19:57:28 +0100 Subject: [PATCH] Removed xp when remove reaction #118 --- kdb-bot/src/modules/base/helper/base_reaction_handler.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 b7b07136..401f97b1 100644 --- a/kdb-bot/src/modules/base/helper/base_reaction_handler.py +++ b/kdb-bot/src/modules/base/helper/base_reaction_handler.py @@ -44,10 +44,9 @@ class BaseReactionHandler: user.xp += settings.xp_per_reaction self._users.update_user(user) self._db.save_changes() - # for future use maybe - # elif r_type == 'remove': - # user.xp -= settings.xp_per_reaction - # self._users.update_user(user) - # self._db.save_changes() + elif r_type == 'remove': + user.xp -= settings.xp_per_reaction + self._users.update_user(user) + self._db.save_changes() else: self._logger.warn(__name__, f'Invalid reaction type {r_type}')