misc_reactions: better logging of loaded reactions

This commit is contained in:
dece 2020-11-08 16:48:13 +01:00
parent 943e62fc31
commit 4a0d780b45

View file

@ -57,7 +57,7 @@ class MiscReactionsPlugin(Plugin):
# Normalize weights. # Normalize weights.
total_weight = sum(weights) total_weight = sum(weights)
weights = list(map(lambda w: w / total_weight, weights)) weights = list(map(lambda w: w / total_weight, weights))
self.bot.log_d(f"Reactions: {reactions}") self.bot.log_d(f"Reactions: {[r.__name__ for r in reactions]}")
self.bot.log_d(f"Reaction weights: {weights}") self.bot.log_d(f"Reaction weights: {weights}")
return reactions, weights return reactions, weights