Removed xp when remove reaction #118

This commit is contained in:
Sven Heidemann 2022-11-17 19:57:28 +01:00
parent c438a91b87
commit fdb358c45e

View File

@ -44,10 +44,9 @@ class BaseReactionHandler:
user.xp += settings.xp_per_reaction user.xp += settings.xp_per_reaction
self._users.update_user(user) self._users.update_user(user)
self._db.save_changes() self._db.save_changes()
# for future use maybe elif r_type == 'remove':
# elif r_type == 'remove': user.xp -= settings.xp_per_reaction
# user.xp -= settings.xp_per_reaction self._users.update_user(user)
# self._users.update_user(user) self._db.save_changes()
# self._db.save_changes()
else: else:
self._logger.warn(__name__, f'Invalid reaction type {r_type}') self._logger.warn(__name__, f'Invalid reaction type {r_type}')