From 5469b1cdf3055a6ffc8cfb1b0935bc0c7ae7b070 Mon Sep 17 00:00:00 2001 From: dece Date: Fri, 6 Nov 2020 11:43:07 +0100 Subject: [PATCH] misc_reactions: move reactions load to on_welcome --- edmond/plugins/misc_reactions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/edmond/plugins/misc_reactions.py b/edmond/plugins/misc_reactions.py index 772bff0..559a6ac 100644 --- a/edmond/plugins/misc_reactions.py +++ b/edmond/plugins/misc_reactions.py @@ -32,6 +32,10 @@ class MiscReactionsPlugin(Plugin): def __init__(self, bot): super().__init__(bot) self.priority = -10 + self.reactions = [] + self.weights = [] + + def on_welcome(self, event): self.reactions, self.weights = self.get_reactions() def get_reactions(self):