0.3 - Xp für Reaction (#118) #121

Merged
edraft merged 5 commits from #118 into 0.3 2022-11-17 20:01:12 +01:00
Showing only changes of commit fdb358c45e - Show all commits

View File

@ -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}')