misc_reactions: move reactions load to on_welcome

This commit is contained in:
dece 2020-11-06 11:43:07 +01:00
parent 3c4c7bc92d
commit 5469b1cdf3

View file

@ -32,6 +32,10 @@ class MiscReactionsPlugin(Plugin):
def __init__(self, bot): def __init__(self, bot):
super().__init__(bot) super().__init__(bot)
self.priority = -10 self.priority = -10
self.reactions = []
self.weights = []
def on_welcome(self, event):
self.reactions, self.weights = self.get_reactions() self.reactions, self.weights = self.get_reactions()
def get_reactions(self): def get_reactions(self):