From 4733715573a372cf27b2d6f9942658a6d7c92354 Mon Sep 17 00:00:00 2001 From: Conatum Date: Mon, 16 May 2022 18:53:48 +0300 Subject: [PATCH] fix (config): Multi-config emoji resolution. --- bot/meta/config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bot/meta/config.py b/bot/meta/config.py index 819bdf42..c6ba57f1 100644 --- a/bot/meta/config.py +++ b/bot/meta/config.py @@ -78,10 +78,6 @@ class Conf: self.default = self.config["DEFAULT"] self.section = MapDotProxy(self.config[self.section_name]) self.bot = self.section - self.emojis = MapDotProxy( - self.config['EMOJIS'] if 'EMOJIS' in self.config else self.section, - converter=configEmoji.from_str - ) # Config file recursion, read in configuration files specified in every "ALSO_READ" key. more_to_read = self.section.getlist("ALSO_READ", []) @@ -94,6 +90,11 @@ class Conf: if path not in read and path not in more_to_read] more_to_read.extend(new_paths) + self.emojis = MapDotProxy( + self.config['EMOJIS'] if 'EMOJIS' in self.config else self.section, + converter=configEmoji.from_str + ) + global conf conf = self